-
Notifications
You must be signed in to change notification settings - Fork 186
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
Edit public links and setPassword #7908
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
1b14bef
to
cd79b7b
Compare
a976ccb
to
ccd0f39
Compare
fe84f46
to
33feab8
Compare
@@ -45,7 +45,7 @@ func FromCS3Status(status *cs3rpc.Status, inerr error, ignore ...cs3rpc.Code) *E | |||
case code == cs3rpc.Code_CODE_ALREADY_EXISTS: | |||
err.errorCode = NameAlreadyExists | |||
case code == cs3rpc.Code_CODE_FAILED_PRECONDITION: | |||
err.errorCode = PreconditionFailed | |||
err.errorCode = InvalidRequest |
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.
@rhafer I needed to fix that. We had misunderstandings about that CS3 Status already in the past.
@@ -135,6 +135,8 @@ func (e Error) Render(w http.ResponseWriter, r *http.Request) { | |||
status = http.StatusMethodNotAllowed | |||
case ItemIsLocked: | |||
status = http.StatusLocked | |||
case PreconditionFailed: |
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 was missing, added it in case we need it.
Kudos, SonarCloud Quality Gate passed! |
Edit public links and setPassword
Description
Related Issue
Motivation and Context
Improve our APIs 🎉
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: