It is part of web.xml from app which runs on JBoss
<security-constraint>
<web-resource-collection>
<web-resource-name></web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>User manual should be accesable for user</web-resource-name>
<url-pattern>/User Manual.pdf</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
As you can see admin has access to all content, and user should have access only to user manual file 'User Manual.pdf'. But it does not work, only admin have access.
This can be fixed by renaming file to 'User_Manual.pdf' and changing <url-pattern>
to '/User_Manual.pdf'
My question is can this be fixed somehow to use spaces in file names?