Security constraint in web.xml not getting applied to URL patterns having file extension

前端 未结 2 1551
天涯浪人
天涯浪人 2021-02-04 08:33

I have the following security constraints entered in the web.xml. My objective is that the XML files are in the Public area. This works for the /images/* folder. Ho

2条回答
  •  余生分开走
    2021-02-04 08:47

    One of your other URL patterns matches more than this url-pattern - *.xml requestURI, that's why it's not working. For example, if you have /test/list/user.xml, then this will be treated as a web resource collection in Super user Area and thus SUPER_USER can only have access. so, ensure that url-pattern is declared more specific to resources to avoid clashes and mis-interpretation. Thanks

提交回复
热议问题