vttranlina commented on code in PR #2193:
URL: https://github.com/apache/james-project/pull/2193#discussion_r1557534660
##########
server/container/core/src/main/java/org/apache/james/server/core/filesystem/ResourceFactory.java:
##########
@@ -59,15 +57,15 @@ public Resource getResource(String fileURL) {
try {
// Try to parse the location as a URL...
return handleUrlResource(fileURL);
- } catch (MalformedURLException | URISyntaxException ex) {
+ } catch (MalformedURLException ex) {
// No URL -> resolve as resource path.
return new ClassPathResource(fileURL);
}
}
}
- private Resource handleUrlResource(String fileURL) throws
MalformedURLException, URISyntaxException {
- URL url = new URI(fileURL).toURL();
+ private Resource handleUrlResource(String fileURL) throws
MalformedURLException {
+ URL url = new URL(fileURL);
Review Comment:
the logic for handler UrlResource is more complicated than I think -> I
revert it now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]