[
https://issues.apache.org/jira/browse/SENTRY-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16260714#comment-16260714
]
BELUGA BEHR commented on SENTRY-2032:
-------------------------------------
Why do we not use
https://commons.apache.org/proper/commons-io/javadocs/api-2.5/org/apache/commons/io/FilenameUtils.html#normalize(java.lang.String)
?
This way we can have consistent normalization throughout the codebase.
> Leading Slashes need to removed when creating HMS path entries
> --------------------------------------------------------------
>
> Key: SENTRY-2032
> URL: https://issues.apache.org/jira/browse/SENTRY-2032
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Affects Versions: 2.0.0
> Reporter: Arjun Mishra
> Assignee: Arjun Mishra
> Fix For: 2.0.0
>
> Attachments: SENTRY-2032.01.patch, SENTRY-2032.02.patch,
> SENTRY-2032.03.patch, SENTRY-2032.04.patch
>
>
> When retrieving full path image update, we split a path by "/" and create HMS
> Path entries. However, the leading "/" presence will cause issues because on
> splitting the value at index 0 will be empty. This will affect the creation
> of HMS path entries.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)