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

IBX-4876: Fixed passing missing visibility configuration for directories #193

Merged
merged 6 commits into from Jan 23, 2023

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Jan 20, 2023

Question Answer
JIRA issue IBX-4876
Type bug
Target Ibexa version v4.4.0-rc1
BC breaks no

\Ibexa\Core\IO\IOBinarydataHandler\Flysystem::create needs to call Flysystem's v2 file system with configuration for directories as well, because they're created on the fly if needed.

Note: ATM integration tests use InMemory Adapter, so the given test doesn't really test file system permission issue. Working on test setup improvement. // Fixed

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly.
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review (ping @ibexa/engineering).

@alongosz alongosz force-pushed the ibx-4876-flysystem-dir-permissions branch from ad3231e to be6650c Compare January 20, 2023 14:22
@alongosz alongosz marked this pull request as ready for review January 20, 2023 14:22
@alongosz alongosz requested review from adamwojs, Steveb-p, ViniTou and a team January 20, 2023 14:25
@konradoboza konradoboza requested a review from a team January 20, 2023 14:27
@alongosz
Copy link
Member Author

Update: 27842af added with @Steveb-p's help, for integration tests purposes, a proxying adapter which has ability to switch between InMemory one and real/local file system one. The issue under test manifests itself with real file system only. I'm considering checking out mikey179/vfsstream to see if that can help without use or real file system, but that seems like more complicated task (more time needed).

@sonarcloud
Copy link

sonarcloud bot commented Jan 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@alongosz alongosz requested review from konradoboza and a team January 20, 2023 16:27
Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
Copy link

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

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

QA approved on IbexaDXP 4.4 content.

@alongosz alongosz merged commit 43429fd into main Jan 23, 2023
@alongosz alongosz deleted the ibx-4876-flysystem-dir-permissions branch January 23, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants