Skip to content

Fix Error handling for "4.1 add" and "4.2 remove".#9

Closed
toshiya wants to merge 4 commits intoguillec:masterfrom
toshiya:fix/add_object_error_handling
Closed

Fix Error handling for "4.1 add" and "4.2 remove".#9
toshiya wants to merge 4 commits intoguillec:masterfrom
toshiya:fix/add_object_error_handling

Conversation

@toshiya
Copy link

@toshiya toshiya commented May 24, 2016

@guillec

Hi, I'm toshiya. First of all, thank you for this great gem. I like it.

I've been using this gem for sometime and find that some subtle error handlings does not satisfies the RFC specification. (Probably, you already know it.)

This PR contains the fix for the following error cases specified in the RFC.

4.1. add
When the operation is applied, the target location MUST reference
https://tools.ietf.org/html/rfc6902#section-4.1

4.2. remove
The target location MUST exist for the operation to be successful.
https://tools.ietf.org/html/rfc6902#section-4.2

4.1.  add
When the operation is applied, the target location MUST reference

4.2. remove
The target location MUST exist for the operation to be successful.
@coveralls
Copy link

coveralls commented May 24, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 0a9aee5 on toshiya:fix/add_object_error_handling into d3a33b0 on guillec:master.

@guillec
Copy link
Owner

guillec commented May 25, 2016

@toshiya hello and thanks for this PR. Can you please check and see why some test failed with this PR? I can review this weekend.

@coveralls
Copy link

coveralls commented May 28, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 2cae51e on toshiya:fix/add_object_error_handling into d3a33b0 on guillec:master.

@coveralls
Copy link

coveralls commented May 28, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 4a60b6f on toshiya:fix/add_object_error_handling into d3a33b0 on guillec:master.

@toshiya toshiya closed this May 28, 2016
@toshiya toshiya deleted the fix/add_object_error_handling branch May 28, 2016 08:38
@toshiya
Copy link
Author

toshiya commented May 28, 2016

@guillec
Thank for your reply. I fixed the problems in unit tests. Now I re-throw PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants