Hi,
it will also solves the not passing JAX-RS test cases (the cut
extensione were missing in the original ref).
best regards
Stephan
Stephan Koops schrieb:
Hi Jerome,
is it right, that you insert the same object into request.originalRef
and request.resourceRef? Than the update of resourceRef also updates
the originalRef. A solution could be to store only the originalRef as
String in the request and create a new Reference object with the
current baseRef, which will result in an adapted remainingPath. Or is
there any advantage, if the baseRef stays at given?
best regards
Stephan
Index: modules/org.restlet/src/org/restlet/data/Request.java
===================================================================
--- modules/org.restlet/src/org/restlet/data/Request.java (revision 3207)
+++ modules/org.restlet/src/org/restlet/data/Request.java (working copy)
@@ -107,7 +107,7 @@
private volatile Method method;
/** The original reference. */
- private volatile Reference originalRef;
+ private volatile String originalRef;
/** The referrer reference. */
private volatile Reference referrerRef;
@@ -274,7 +274,7 @@
* @see #getResourceRef()
*/
public Reference getOriginalRef() {
- return this.originalRef;
+ return new Reference(this.resourceRef.getBaseRef(), this.originalRef);
}
/**
@@ -463,7 +463,7 @@
* @see #getOriginalRef()
*/
public void setOriginalRef(Reference originalRef) {
- this.originalRef = originalRef;
+ this.originalRef = originalRef.toString(true, true);
}
/**