-
Notifications
You must be signed in to change notification settings - Fork 265
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
in POST v2/subscriptions if expires has invalid date the subscription is created #2303
Comments
Re-tested in CB version and it issue still fails, it returns
|
I looked into this issue a little and found the following solution (detecting trailing garbage in the date string):
This fix (the addition is the else part) works just fine, however, in many many of our functests we use dates with the following format:
The fix receives Now, what do we do with this? |
I haven read in deep last comment, sorry... My only concern here if is changing the way we deal with dates could break (or "make it worse" if already broken :) our support to ISO8601 |
Take into account that rencelty (1.6.0, Nov 2016) we implemented the following functionality:
Take that into account (in particular, the PRs linked from these issues) in order to fix this issue. In addition, the issue #2718 seems to be very related with this. |
This issue seems to have been fixed. |
Re-tested with:
And all cases are OK, except the first case in the dataset:
|
(As the issue is still open, then it seems I incorrectly put it in the 1.6.0 milestone. Moved back to NGSIv2SubscriptionValidation milestone) |
Related to #2718 |
(feedback required from @fgalan) |
@ArqamFarooqui110719 maybe you could do a PR including a .test covering the cases:
That way we strengthen our test base and check that issue is actually solved. |
Fixed by PR #4584 |
in POST v2/subscriptions if expires has invalid date the subscription is created
dataset
subscription request
subscription response
expected response
The text was updated successfully, but these errors were encountered: