-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reach DURATION_OUT_OF_RANGE
for /sessions/<sessionId>/extend
?
#377
Comments
Or maybe I understood it in a wrong way. Correct me if I am wrong. |
Hi Max, to me that error 400 QUALITY_ON_DEMAND.DURATION_OUT_OF_RANGE makes only sense while validating the input value for In the case of extendQosSessionDuration, it may not be necessary if we allow any value as long as the extended duration does not exceed the maxDuration. In the case of your question:
In that case the session duration would still be 50.000 |
Within today's QoD call we concluded that the following is correct and QUALITY_ON_DEMAND.DURATION_OUT_OF_RANGE should be removed from the operation
If we go this path, we should already in the patch release add a description that this error message will be removed in the next version. I will create a PR for that. |
Created #382 for the patch release which answers the question within this issue |
Describe the bug
Let's take this example here.
So after the extension, the overall session duration was set to 50.000 / the maximum of the QoS-profile.
What would happen, if now the user requests for another extension of 30.000 seconds, right after the previous extension?
a) The overall session will again be set to 50.000
b) The provider will answer with a HTTP - 400 and
QUALITY_ON_DEMAND.DURATION_OUT_OF_RANGE
(see https://github.com/camaraproject/QualityOnDemand/blob/main/code/API_definitions/quality-on-demand.yaml#L1053-L1058)or c) The provider just allows extension until the maximum is reached, afterwards the session cannot be extended anymore.
If a) is the right answer, and you can extend as much as you want, then I guess
QUALITY_ON_DEMAND.DURATION_OUT_OF_RANGE
is just a valid error for first-time creation of a session. So not anymore for the extension.Wdyt?
The text was updated successfully, but these errors were encountered: