Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring security : intercept-url not recognizing wildcard

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using spring security and part of the code is below



when trying to access a page inside personsearch or companySearch the authorization is not taking place.

However if I use filename like
faces/jsp/pages/personsearch/search.jsp the interceptor catches it.

I have around 100 pages in my applications, so cannot put entry for each of them.

Is there any better way?

Regards,
Joshua
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Asterisks are supposed to work. Could it be the Strings you have in there for the urls? Meaning the front part seems odd to me for some reason. ""faces/jsp/pages/"

What happens with just one asterisk? I am always off with how many asterisks are needed and such, I wish it didn't follow ant rules, but the normal standard rules of "*" always being the wildcard.

Mark
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, it worked.

Regards,
Joshua
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic