-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(4687): rest status codes #4706
Conversation
Signed-off-by: p1729 <pankajkumar1729@gmail.com>
Signed-off-by: p1729 <pankajkumar1729@gmail.com>
@Bukhtawar I have opened this PR to get your early feedback on the expected solution. I will be adding tests as well if needed soon. |
Gradle Check (Jenkins) Run Completed with:
|
@Override | ||
public RestStatus status() { | ||
String causeDescription = unwrapCause().getMessage(); | ||
if (causeDescription != null && causeDescription.contains("not found")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't very reliable.
Start by writing a unit test that reproduces the problem, then we can talk about how to fix it best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense, I will try to write an integration/sociable test.
@p1729 could you please share status of the progress here for this PR. PLease let us know if you need any help. Thanks |
@p1729: Are you still working on this PR ? |
@p1729 Closing this PR as it hasn't been worked on in a while. Please let us know if you are still working on it and we'll re-open the PR. |
Description
[Describe what this change achieves]
Issues Resolved
#4687
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.