Need help on Spring Security REST API plugin for grails

54 views
Skip to first unread message

Biswas Lohani

unread,
Oct 5, 2014, 12:40:06 PM10/5/14
to spring-sec...@googlegroups.com
Hi,
I just faced the issue while using Spring Security REST API plugin for grails.
When I want to update some object of certain class. I then call the URL with PUT in it and the object which needed to updated.
But suppose I send the different object of different class, It still takes the id from there gets the object of required class and updates it.

Example: I want to update the test object, so I call /com/test with PUT and object of com.Test domain (this works great)
But if I call the same URL /com/test with object of com.Test123 domain, it then takes the id and gets the object of Test domain with the same id and updates it.
I don't need this. If the class doesn't match, it must show the class mismatch error.

Is it some configuration issue?
Please help me on this.

Thanks,
Biswas

Alvaro Sanchez-Mariscal

unread,
Oct 6, 2014, 9:44:39 AM10/6/14
to Biswas Lohani, spring-sec...@googlegroups.com
Hi Biswas,

Unfortunately this has nothing to do with Spring Security, but rather with Grails REST support.

You better ask in Stackoverflow using "grails" tag for help.

Cheers.

--
Spring Security REST
http://alvarosanchez.github.io/grails-spring-security-rest/
---
You received this message because you are subscribed to the Google Groups "Spring Security REST" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-security-...@googlegroups.com.
To post to this group, send email to spring-sec...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-security-rest.
To view this discussion on the web, visit https://groups.google.com/d/msgid/spring-security-rest/dd01c46e-6a0e-430b-98e2-7fa837393347%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro Sanchez-Mariscal
alvaro.sanc...@gmail.com
twitter.com/alvaro_sanchez
Reply all
Reply to author
Forward
0 new messages