mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
FIXED : ALF-12036: External User Invitation issues
Uses the serverPath from sysAdminParams instead of being passed in by webscripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -229,6 +229,21 @@ public class InviteSenderTest extends TestCase
|
||||
rejectLink);
|
||||
}
|
||||
|
||||
public void testValidServerPath() throws Exception
|
||||
{
|
||||
String validPath = "test://test/path/";
|
||||
String serverPath = InviteSender.ensureEndsWithSlash("test://test/path");
|
||||
assertEquals(validPath,serverPath);
|
||||
|
||||
serverPath = InviteSender.ensureEndsWithSlash("test://test/path/");
|
||||
assertEquals(validPath,serverPath);
|
||||
}
|
||||
|
||||
protected static String ensureEndsWithSlash(String thePath)
|
||||
{
|
||||
return thePath.endsWith("/")?thePath:thePath+"/";
|
||||
}
|
||||
|
||||
private Map<String, String> buildDefaultProperties()
|
||||
{
|
||||
Map<String, String> properties = new HashMap<String, String>();
|
||||
|
Reference in New Issue
Block a user