11-20-2008 02:39 PM
11-20-2008 03:19 PM
11-24-2008 04:21 AM
11-24-2008 05:28 AM
11-26-2008 11:45 AM
11-27-2008 08:40 PM
403
11-27-2008 10:15 PM
11-28-2008 02:00 AM
11-28-2008 02:42 AM
Index: JaxRSUriIndex.java
===================================================================
— JaxRSUriIndex.java (…/HEAD/root/projects/webscript-framework/source/java/org/alfresco/web/scripts/JaxRSUriIndex.java) (revision 12127)
+++ JaxRSUriIndex.java (…/BRANCHES/V3.0/root/projects/webscript-framework/source/java/org/alfresco/web/scripts/JaxRSUriIndex.java) (revision 12127)
@@ -24,14 +24,9 @@
*/
package org.alfresco.web.scripts;
-import java.util.ArrayList;
import java.util.Comparator;
-import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import java.util.TreeMap;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -76,9 +71,18 @@
Map<String, String> varsMatch = null;
Match scriptMatch = null;
String match = uri;
- String matchNoExt = ((uri.indexOf('.') != -1) ? uri.substring(0, uri.indexOf('.')) : uri);
+ String matchNoExt = uri;
+ int extIdx = uri.indexOf('.');
+ if (extIdx != -1)
+ {
+ // format extension is only valid as the last URL element
+ if (uri.lastIndexOf('/') < extIdx)
+ {
+ matchNoExt = uri.substring(0, extIdx);
+ }
+ }
method = method.toUpperCase();
-
+
// locate full match - on URI and METHOD
for (IndexEntry entry : index.keySet())
{
patch -p0 -l < ~/Desktop/dot-patch.diff
from that scripts folder above.12-03-2008 05:48 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.