Wrong redirect URL after shibboleth login

28 views
Skip to first unread message

David Williams

unread,
Sep 24, 2020, 4:39:17 PM9/24/20
to DSpace Technical Support
Hi all -

I appear to have been bitten by the bug submitted here:


Because I'm running DSpace from the root context, an extra slash is added to the return URL, based on this directive:

 if (!(port == 443 || port == 80))
     returnURL += ":" + port;
 returnURL += "/" + contextPath + "/shibboleth-login"; 

Under the circumstances, my contextPath is empty, so I  end up with https://myserver.edu//shiboleth-login, which means the authentication attributes never make it to DSpace (I think).

I'd like to add an if/else conditional test along the lines of if (contextPath == null || contextPath.length() == 0) returnURL += "/shibboleth-login"; else and then recompile the java class.

How can I do that and subsequently recompile and reinstall only this updated shibboleth authentication class?

Thanks,

- Dave Williams
Reply all
Reply to author
Forward
0 new messages