Skip to content

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

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

Yavor16
Copy link
Contributor

@Yavor16 Yavor16 commented Feb 10, 2025

No description provided.

Copy link
Contributor

@boyan-velinov boyan-velinov left a 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?

@@ -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());
Copy link
Contributor

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.

@Yavor16 Yavor16 force-pushed the allow-special-characters-in-the-url branch from f209ead to adb20e2 Compare February 25, 2025 14:27
boyan-velinov
boyan-velinov previously approved these changes Feb 25, 2025
@Yavor16 Yavor16 force-pushed the allow-special-characters-in-the-url branch 2 times, most recently from f540504 to dc7da2d Compare February 26, 2025 09:14
@Yavor16 Yavor16 force-pushed the allow-special-characters-in-the-url branch from dc7da2d to 6ba9a2f Compare February 26, 2025 09:20
@Yavor16 Yavor16 merged commit b65e657 into master Feb 26, 2025
7 checks passed
@Yavor16 Yavor16 deleted the allow-special-characters-in-the-url branch February 26, 2025 14:03
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