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

[BUG] Namespace not set in Filesystem Plugins #5449

Closed
nikgo opened this issue Jun 14, 2016 · 1 comment
Closed

[BUG] Namespace not set in Filesystem Plugins #5449

nikgo opened this issue Jun 14, 2016 · 1 comment
Labels
bug A bug that has been verified

Comments

@nikgo
Copy link
Contributor

nikgo commented Jun 14, 2016

Namespace not set in Filesystem Plugins. This causes e.g. permissions in FileManager not work for different namespaces.

Details

  • Relevant Bolt Version: 3.0.5 | master
  • Install type: Github checkout
  • PHP version: 5.5
  • Used webserver: Apache version 2.4.7

Reproduction

Use bolt master or release/3.0 branch:

  1. Go to Bolt File Manager /bolt/files
  2. Append a filesystem mount point to /bolt/files e.g /bolt/files/cache or /bolt/files/app
  3. You can view files from not allowed mount points via FileManager.

Only allowed prefixes (files,theme,config) in \Bolt\Filesystem\FilePermissions should authorized.

Technical

This is caused because namespace not set in constructor of Filesystem Plugins which inherits from \Bolt\Filesystem\Plugin\AdapterPlugin. Default namespace is "files". So other namespaces are still authorized.

Solution

PR is in work.

@GwendolenLynch GwendolenLynch added the bug A bug that has been verified label Jun 14, 2016
@GwendolenLynch
Copy link
Contributor

Nice find… Awaiting the PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that has been verified
Projects
None yet
Development

No branches or pull requests

2 participants