Comments (3)
By default TYPO3 bypasses the fileadmin folder but i have a middleware that initiates the fileadmin folder through php, and therefor activates your middleware.
My middleware then validates if the user is logged in and has access based on uri; but due to your middleware this request is manipulated (newly created) for my usecase and therefor not used correctly anymore.
As i adjusted it locally, it doesn't conflict anymore. Feel free to adjust or just leave it be but the problem remains. If you want my 'secured files' extension to test, i can send you this in private (feel free to dm me in slack)
from justincase.
Is this issue also about fileadmin file handling? If so, then it doesn't seem to be a problem anymore for fileadmin file handling:
I just tested b13/justincase:1.2.0
with a TYPO3 11.5.25
on Linux (case-sensitive file system), and fileadmin file handling is as expected, i.e. file name capitalization is significant and obeyed.
Example
Three files in fileadmin, all in the same directory:
File https://typo3.example.com/fileadmin/case.png
(lowercase)
File https://typo3.example.com/fileadmin/CASE.png
(UPPERCASE)
File https://typo3.example.com/fileadmin/CaSe.png
(MiXeDcASe)
Result
Requests to any of these three files are correctly disambiguated, and a request to nonexisting https://typo3.example.com/fileadmin/casE.png
correctly results in a 404 Not Found.
from justincase.
The redirect middleware is affected. If you want to use redirects for files with uppercase letters in the filepath, it won't work as the request is already turned to lowercase.
Workaround at the moment is to change the order of middlewares. I'm not shure if there are any drawbacks, though.
from justincase.
Related Issues (12)
- ext:justincase causes a problem opposite to it's claim HOT 5
- Controllable http status code
- Question about strtolower
- The middleware breaks secure_downloads links HOT 1
- Redirects do not work, if they are not written in lowercase
- Error with Typo3 11 and PHP 8 HOT 1
- Undefined array key "settings" HOT 1
- justincase breaks TYPO3 10.4.36 HOT 3
- Plans for TYPO3 v12 support? HOT 2
- TypeError when no SiteLanguage was resolved HOT 4
- Error in the middleware configuration; there is no middleware named "typo3/cms-frontend/site-resolver" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from justincase.