-
Notifications
You must be signed in to change notification settings - Fork 42
Allow special characters in the url #1590
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
Conversation
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.
Can we increase code coverage for the PR?
Now it is under the quality gate?
...eb/src/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/FilesApiServiceImpl.java
Outdated
Show resolved
Hide resolved
@@ -156,7 +158,7 @@ public ResponseEntity<Void> startUploadFromUrl(String spaceGuid, String namespac | |||
deleteAsyncJobEntry(existingJob); | |||
} | |||
} | |||
return triggerUploadFromUrl(spaceGuid, namespace, urlWithoutUserInfo, decodedUrl); | |||
return triggerUploadFromUrl(spaceGuid, namespace, urlWithoutUserInfo, decodedUrl, fileUrl.getUserCredentials()); |
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.
UserCredentials is passed through multiple layers just to reach buildFetchFileRequest. Just a small suggestion—consider encapsulating related parameters into a FileDownloadRequestContext to reduce method parameter lists and improve readability. Not a change request, just optimization proposal.
f209ead
to
adb20e2
Compare
...eb/src/main/java/org/cloudfoundry/multiapps/controller/web/api/impl/FilesApiServiceImpl.java
Outdated
Show resolved
Hide resolved
f540504
to
dc7da2d
Compare
dc7da2d
to
6ba9a2f
Compare
|
No description provided.