[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 20:32:29 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=eyJpIjoiZWFjZWNhYjAwNWE0NDY0MDljYjUxY2M2MmQwYjMxNjQiLCJwIjoiaiJ9 )

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

So, I don’t see a fix of the sort one would want. The tree walk methods all return a lazy Stream, and it’s only while fetching items from the Stream that it notices the access exception and then it throws that unchecked, so catching it would abort the whole process, rendering it useless.

And as it is, the values returned are already being filtered heavily and not returning any directories, so I don’t see how I can change the BiPredicate in a way that would prevent it trying to access them even if I knew the names to omit.

It just seems to be an inherent flaw in the way they implemented it. I will have to see if they have a similar search method somewhere that doesn’t return a Stream or calls some object/method with a “visit node” kind of approach so that the exception might be trappable by the visiting code.

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

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/f3550942/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-1e3b7f21-5225-49f3-b3a7-cafb7767b964
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/f3550942/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-1025ffc2-7300-4d5e-947b-6b20a7061136
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/f3550942/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-73b85e9a-0a74-44a9-a177-c619fba2b117
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220818/f3550942/attachment-0005.png>


More information about the commits mailing list