Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: Configuration
-
Labels:None
-
Environment:Ubuntu Intrepid 8.10, Java 1.6_r10, grails 1.04_SNAPSHOT
Description
After the fixing of GRAILS-3369 in Revision 7401, the URL Mapping now seems to be broken for services exposed via Xfire WS plugin in projects that also use acegi or jsecurity
Here is a short example on how to reproduce this bug:
- check out latest svn version of grails 1.0.4 from trunk
- install xfire plugin
- create simple Webservice, e.g.:
WsTestService.groovy
class WsTestService {
boolean transactional = true
static expose = ['xfire']
public String serviceMethod() {
return "Hello"
}
}
- in grails-app/conf/UrlMappings.groovy insert constraint: controller(matches:/.*[^(services)].*/)
- check that you can properly consume the hello world service via a soap client, i.e. you receive "Hello" as response
- install acegi (or jesecurity) plugin
- invoke xFire service again and you should receive a *Unexpected EOF in prolog at [row,col
{unknown-source}
]: [1,0]* response
- roll back grails snapshot to a release < 7400, e.g. svn update -r 7399; ant jar
- restart testapp and check that your receive "Hello" as response again
After playing with grails 1.1 I found out that the problem exists over there too. My gut feeling is that the constraint in the UrlMappings is no longer obeyed correctly...