Skip to content

Since Magento 2.3 the wysiwyg image uploader incorrectly uses pub/media as storage root. #22609

Closed
@hostep

Description

@hostep

Preconditions (*)

  1. Magento 2.3.1 or 2.3-develop (I've used commit d3fdecf, can't use the latest commit 28757e4 since it breaks the backend due to some 'unserialize' warnings)
  2. PHP 7.1.27

Steps to reproduce (*)

  1. In the backend go to Content => Pages
  2. Click 'Add New Page'
  3. Expand the 'Content' section, click 'Show / Hide Editor' and click 'Insert Image...'

Expected result (*)

  1. The Storage Root being represented by pub/media/wysiwyg
  2. Screenshot 2019-05-02 at 20 54 14 (screenshot is from 2.2-develop)

Actual result (*)

  1. The Storage Root being represented by pub/media
  2. Screenshot 2019-05-02 at 21 01 48

Discussion

I think this is incorrect in Magento 2.3.x, as it would allow non-technical users to delete/change files they probably shouldn't touch. For example I was perfectly able to just remove the pub/media/catalog directory using this interface, which is not a really good idea ...

Metadata

Metadata

Assignees

Labels

Component: BackendEvent: dmcdindia1Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions