[JIRA] (IDP-1973) Don't traverse directories under conf/ that is forbidden by permission

Scott Cantor (Jira) jira at shibboleth.atlassian.net
Thu Aug 18 14:18:37 UTC 2022


Scott Cantor ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A5b78efc9-1379-42cc-a3f6-56c6ea3a0007 ) *commented* on IDP-1973 ( https://shibboleth.atlassian.net/browse/IDP-1973?atlOrigin=eyJpIjoiYzVjM2JkNDM3Yjk3NDQyZmIxYjI0MDhlN2FhYWIyMjMiLCJwIjoiaiJ9 )

Re: Don't traverse directories under conf/ that is forbidden by permission ( https://shibboleth.atlassian.net/browse/IDP-1973?atlOrigin=eyJpIjoiYzVjM2JkNDM3Yjk3NDQyZmIxYjI0MDhlN2FhYWIyMjMiLCJwIjoiaiJ9 )

I think it will be impossible to fix without a rewrite, the error is likely happening while the Files.find() method is building the Stream<Path>

I’m not keen on coming up with my own tree walking algorithm. If the built-in one just doesn’t handle this case, then we may just have to not support that case. What we probably could do is undo the try-with-resources paradigm so that it at least catches the exception and just stops the search. But I think we’d still need to throw a fatal error because otherwise you’d have missing properties that would lead to errors much harder to understand.

( https://shibboleth.atlassian.net/browse/IDP-1973#add-comment?atlOrigin=eyJpIjoiYzVjM2JkNDM3Yjk3NDQyZmIxYjI0MDhlN2FhYWIyMjMiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-1973#add-comment?atlOrigin=eyJpIjoiYzVjM2JkNDM3Yjk3NDQyZmIxYjI0MDhlN2FhYWIyMjMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100205- sha1:6417f3f )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/295f54a9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-7f84f37f-67c4-454c-b70f-f6baf4ba0b58
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/295f54a9/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-42c8653b-681c-41e6-9857-3e0c698a3324
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/295f54a9/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-3d908608-aa81-4581-91ae-94b09282f94f
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/295f54a9/attachment-0005.png>


More information about the commits mailing list