Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GAL-365] Allow for non-readable files inside Galleon installation #350

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

spyrkob
Copy link
Contributor

@spyrkob spyrkob commented Jul 9, 2024

@@ -162,7 +162,7 @@ private void initChildren(final FsEntry parent) throws IOException {
}
if(hasDirs) {
for(FsEntry child : parent.getChildren()) {
if(!child.dir) {
if(!child.dir || !Files.isReadable(child.p)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spyrkob , is it enough? DirectoryStream stream = Files.newDirectoryStream(parent.p) (line 155) should fail if the installation root directory contains non readable directory. No?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfdenise my understanding is that if the parent directory has read permission, you're able to list all the children. The problem happens when trying to create the newDirectoryStream for the child folder without read permission (line 168).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spyrkob , ok.

@jfdenise
Copy link
Contributor

@spyrkob , FYI, the failing tests on windows are related to this fix.

Copy link
Contributor

@jfdenise jfdenise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new tests are failing on windows.

@spyrkob
Copy link
Contributor Author

spyrkob commented Jul 10, 2024

The new tests are failing on windows.

I had to skip those tests on Windows as it doesn't seem possible to set the correct permissions on the test folders.

@jfdenise jfdenise merged commit 174b3f2 into wildfly:main Jul 16, 2024
4 checks passed
@jfdenise
Copy link
Contributor

@spyrkob , thank-you merged

@spyrkob spyrkob deleted the GAL-365 branch July 16, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants