desruisseaux commented on code in PR #40:
URL: https://github.com/apache/sis/pull/40#discussion_r2792666240


##########
endorsed/src/org.apache.sis.cloud.aws/main/org/apache/sis/cloud/aws/s3/KeyPath.java:
##########
@@ -324,6 +335,16 @@ final class KeyPath implements Path {
         key = null;
     }
 
+    /**
+     * Reformat path, replacing "./" by "/"
+     */
+    private static String reformatPath(String path) {
+        if(path != null) {
+            path = path.replace("./","/");

Review Comment:
   If this is an attempt to normalize POSIX path, what about path containing 
`../`? This code would change the path.



-- 
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]

Reply via email to