-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Description
In case of unexplore deployment , no file system is been created , thus when we try to read properties or csrfguard.js from using getRealPath() we are getting null. So instead of reading file using getRealPath() , we could read file from the context from path.
Steps to reproduce the behavior:
- In TomCat 9 (Tomcat9 -> conf-> server.xml).
- In server.xml search of unpackWARs and set unpackWARs to false.
- We can use any Example project , just add csrfguard.properties and csrfguard.js file inside web.xml file.
- create the war and try to deploy this war using above configuration in tomcat.
- Deployment will fail in this case , since it will not be able to read the file.
Expected behavior
We should be able to deploy the war and we should be able to get csrfguard.js file .
Desktop (please complete the following information):
- OS: windows
- Browser chrome
- Version 101.0.4951.64
Pull request of this is #99 . And we had a discussion about this issue few weeks back #91 .
This issue is reproducible in older release also. Here is an example project with old jar(csrfguard-3.1.0.jar ).
Example.zip
Metadata
Metadata
Assignees
Labels
No labels