Skip to content
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

CoAP 5.0 internal error is mapped on CREATED #486

Closed
fdur opened this issue Mar 9, 2018 · 4 comments
Closed

CoAP 5.0 internal error is mapped on CREATED #486

fdur opened this issue Mar 9, 2018 · 4 comments
Labels
bug Dysfunctionnal behavior

Comments

@fdur
Copy link

fdur commented Mar 9, 2018

When a client sends a CoAP 5.00 error (internal server error), it seems that it's mapped to CREATED response:
public final static ResponseCode INTERNAL_SERVER_ERROR = new ResponseCode(INTERNAL_SERVER_ERROR_CODE, "CREATED");
File: /leshan-core/src/main/java/org/eclipse/leshan/ResponseCode.java
Is it correct ?

@sbernard31 sbernard31 added the bug Dysfunctionnal behavior label Mar 9, 2018
@sbernard31
Copy link
Contributor

Good catch ! I will fix this.

How do you find it ? (I mean what is the impact ?)

@sbernard31
Copy link
Contributor

Fixed in commit 790fe57

@fdur
Copy link
Author

fdur commented Mar 9, 2018

The impact is just for the UI of a server that you may know :)
When such error is sent by a client on a GET, the UI of this server indicates:

Read operation failure [...: CREATED]

@sbernard31
Copy link
Contributor

😱 !

I close it as this is fixed in Leshan. For the server that I may know, this will not be so quick 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Dysfunctionnal behavior
Projects
None yet
Development

No branches or pull requests

2 participants