Announcement Announcement Module
No announcement yet.
Private path methods in ConnectController Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Private path methods in ConnectController

    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.

  • #2
    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.


    • #3
      Thanks! I worked around it for now, but good to know I won't have to in RC2.