[
https://issues.apache.org/jira/browse/SENTRY-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16241352#comment-16241352
]
Alexander Kolbasov commented on SENTRY-2032:
--------------------------------------------
Note that when we store paths in the database, we always remove the leading
slash, so all paths do not have it. Worth adding a comment (and possibly a
precondition check) somewhere.
> 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
>
> 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)