Page 1 of 1

File picker broken since 2.2.10 -> 3rd level subdirectories

Posted: Thu Mar 07, 2019 2:07 pm
by creopard
Steps to reproduce:
1. Add an image in any content page
2. Click on the browse icon, so the file picker will open
3. Navigate to any directory, e.g. "/uploads/images"
4. Try to open a subdirectory in the images directory, e.g. "gallery"
5. File picker won't open the subdirectory "gallery", but jump back directly to "uploads"

I don't know if this bug was introduced in 2.2.10 or earlier 2.2.9/2.2.9.1 as I don't use that image insertion function regularly.
It used to work definately in 2.2.8.

Re: File picker broken since 2.2.10 -> 3rd level subdirector

Posted: Thu Mar 07, 2019 3:32 pm
by DIGI3
I wasn't able to reproduce this. I tried with a default filepicker profile and without. Can you think of anything else that may be set that could affect it? Does anything show in the JS console or error log? Do you have mod_security enabled?

Re: File picker broken since 2.2.10 -> 3rd level subdirector

Posted: Thu Mar 07, 2019 4:49 pm
by creopard
Thanks for the feedback.
The JS console made the trick!

It seems my .htaccess was too restrictive for 2.2.10. After removing

Code: Select all

Header set Content-Security-Policy: "frame-ancestors 'self'"
the File picker works again as intended!
Thank you for your support!