Author: kien_nguyen
Date: 2010-11-18 02:41:14 -0500 (Thu, 18 Nov 2010)
New Revision: 5149
Modified:
exo/portal/branches/3.1.x/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java
Log:
EXOGTN-154 [PLF] Unknown error when editing signed user at Users managemen (see
JBEPP-470)
Modified:
exo/portal/branches/3.1.x/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java
===================================================================
---
exo/portal/branches/3.1.x/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java 2010-11-18
07:38:55 UTC (rev 5148)
+++
exo/portal/branches/3.1.x/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java 2010-11-18
07:41:14 UTC (rev 5149)
@@ -253,7 +253,17 @@
{
throw new Exception("Invalid Application Id: [" + id +
"]");
}
- return getApplication(fragments[0], fragments[1]);
+
+ String category = fragments[0];
+ String applicationName = fragments[1];
+
+ // If the application name contained a beginning slash (which can happen with
WSRP), we need to hack around the
+ // hardcoding of portlet id expectations >_<
+ if(fragments.length == 3 && applicationName.length() == 0)
+ {
+ applicationName = "/" + fragments[2];
+ }
+ return getApplication(category, applicationName);
}
public Application getApplication(final String category, final String name) throws
Exception
Show replies by date