[seam-commits] Seam SVN: r15432 - branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/document.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Feb 28 03:45:51 EST 2013
Author: manaRH
Date: 2013-02-28 03:45:51 -0500 (Thu, 28 Feb 2013)
New Revision: 15432
Modified:
branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/document/DocumentStore.java
Log:
JBSEAM-5077 fixed wrong document store URL
Modified: branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/document/DocumentStore.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/document/DocumentStore.java 2013-02-28 08:43:29 UTC (rev 15431)
+++ branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/document/DocumentStore.java 2013-02-28 08:45:51 UTC (rev 15432)
@@ -75,7 +75,16 @@
public String preferredUrlForContent(String baseName, String extension, String contentId)
{
- return baseUrlForContent(baseName, extension) + "?docId=" + contentId;
+ StringBuffer url = new StringBuffer(baseUrlForContent(baseName, extension));
+ if (url.toString().indexOf('?') >= 0)
+ {
+ url.append("&docId=").append(contentId);
+ }
+ else
+ {
+ url.append("?docId=").append(contentId);
+ }
+ return url.toString();
}
protected String baseUrlForContent(String baseName, String extension) {
More information about the seam-commits
mailing list