PDA

View Full Version : Private path methods in ConnectController



dhalbrook
Jun 30th, 2011, 12:36 PM
Hi all,

We're running the web part of Spring social in a namespaced URL since we have a rather complex application that, in general, doesn't rely on MVC. Thus all requests to the Spring MVC servlet are going through a path like "/springsocial/....". This works for the most part, but I'm finding the ConnectController seems to redirect to the context root when the Oauth chain is complete and it attempts to fetch the status.

These methods:


private String getControllerPath() {
return "/connect";
}

private String getViewPath() {
return "connect/";
}

private String connectView(String name) {
return getViewPath() + name;
}


are all private and changing the redirect target would be so much easier if these were protected instead, or took the application URL into account.

habuma
Jun 30th, 2011, 01:16 PM
The latest snapshot builds no longer use the getControllerPath() and instead use relative redirects, which should work even if your ConnectController's path is deeper than the application root. Try out the snapshot build and let us know if that works for you.

dhalbrook
Jun 30th, 2011, 03:38 PM
Thanks! I worked around it for now, but good to know I won't have to in RC2.