Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Spring security : intercept-url not recognizing wildcard

 
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
 
ranger
Posts: 17344
11
Mac IntelliJ IDE 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
 
I'm full of tinier men! And a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!