• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Does MVC method PUT work with Spring security?

Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Posted on Spring forum, no luck, let's try here.

I have problem exactly the same as stated in discussion in Spring Roo Forum


Problem is this: In my controller, I adjusted code for the methods for creation (using POST) and update (using PUT). Unfortunately spring security seems to do a redirect so the original PUT-request from my update gets turned into a POST-request which in turn leads to the controller not finding a correct request mapping for the update URL (expects PUT, gets POST).

There is jira issue and it should be fixed with wersion #Fix Version/s: 3.0.2.

I am using Spring 3.0.3. I am new to Spring MVC, so I am not sure that my setup is 100% correct.

If someone can just confirm it is working (Spring MVC + Spring Security + Method PUT for update), I will try to find issue on my side.

If someone had similar issue and resolved it, any hints will be appreciated.
    Bookmark Topic Watch Topic
  • New Topic