Restlet and FF in Windows: range out of range (NEW?)

2010-06-03 Thread pegpeg
Hi all, 

The header request of FF3.6.3 contains a range and if-range header that
apparently causes an error with restlet 2.0m7 and the ultimate snapshot too:
FF generates call http get and on the second Restlet returns a '501 not
implemented error (returning a FileRepresentation of a PDF file). 

Here are the concerned headers ( firebug ) for the restlet 2.0m7:

FIRST HTTP GET:

Response
DateThu, 03 Jun 2010 19:14:50 GMT
Server  Restlet-Framework/2.0m7
Content-Length  86633
Content-Typeapplication/pdf
Expires Thu, 03 Jun 2010 19:14:50 GMT
Last-Modified   Thu, 03 Jun 2010 19:14:50 GMT
Accept-Ranges   bytes
VaryAccept-Charset,Accept-Encoding,Accept-Language,Accept
Via 1.1 anares.eu
Keep-Alive  timeout=15, max=100
Connection  Keep-Alive

Request
Hostanares.eu
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  115
Connection  keep-alive
Range   bytes=58868-
If-RangeThu, 03 Jun 2010 19:11:29 GMT
 


SECOND HTTP GET:


Response
DateThu, 03 Jun 2010 19:14:51 GMT
Server  Restlet-Framework/2.0m7
Content-Typetext/html; charset=ISO-8859-1
Accept-Ranges   bytes
VaryAccept-Charset,Accept-Encoding,Accept-Language,Accept
Via 1.1 anares.eu
Content-Encodinggzip
Content-Length  279
Connection  close
RequĂȘtevoir le code source
Hostanares.eu
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  115
Connection  keep-alive
Range   bytes=32768-86632,32768-32769


To get around this problem I clean the range header :

getRequest().getConditions().setRangeTag(null);

Is this a bug or a bad use  ?

thanks 
Peg






-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Restlet-and-FF-in-Windows-range-out-of-range-NEW-tp5136708p5136708.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2616570


Re: Restlet and FF in Windows: range out of range (NEW?)

2010-06-03 Thread pegpeg
well, I can't really get around ... some times it works (null-ing range tag)
.. some times not 
don't understand ...

help?

thanks 

-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Restlet-and-FF-in-Windows-range-out-of-range-NEW-tp5136708p5136817.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2616579


Re: Restlet and FF in Windows: range out of range (NEW?)

2010-06-03 Thread pegpeg
how can I know if this is a adobe plugin problem with restlet ? 

is this the Issue 651 ? 

I thought it was corrected. 



-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Restlet-and-FF-in-Windows-range-out-of-range-NEW-tp5136708p5136831.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2616580


Re: Restlet and FF in Windows: range out of range (NEW?)

2010-06-03 Thread pegpeg
well this is th adobe plugin / restlet relationship that causes this error.

so this is Issue 651.

is there a good way to get around ? 


-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Restlet-and-FF-in-Windows-range-out-of-range-NEW-tp5136708p5136876.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2616582


uri reorg question

2010-05-10 Thread pegpeg
hi everybody, 

I have a restlet application with uri patterns mapping like these: 
/web/* - Directory()   // 'web resources' (html, css, img, ...) 
/(pattern) - *Resource()   // entities

I would like to serve 'web resources' from root :
/* - Directory()

but keep my resource mapping working:
/(pattern) - Resource()

my resources are not served (because of Directory), I thought it wouldn't
work but I tried ... ;-)
 
what is the good way implement that ? 

thanks a lot for help 

peg
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/uri-reorg-question-tp5029417p5029417.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2606629


Re: uri reorg question

2010-05-10 Thread pegpeg
it is true that knowing every directory I could map these ...
but this is not really possible because web developpers are free to organize
their web resources 

thanks anyway for your reply 
Peg
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/uri-reorg-question-tp5029417p5030420.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2606813


RE: log trace

2010-03-31 Thread pegpeg
Hi, 
I've got the java logs but don't see why I  have different behaviours
between restlet client and firefox when searching docs in couchdb. 
I don't know how to use wireshark (way too complicated for me, howw to se
http tcp content ...), Firebug is alright but unusable in this case.

Peg 
-- 
View this message in context: 
http://n2.nabble.com/log-trace-tp4778884p4831498.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2467783


RE: log trace

2010-03-22 Thread pegpeg
I read the link and tried some of the tips ... without success (I'm always
confused with the way config files are searched  ... ).
 
I'm using restlet-jse-2.0m7.

Isn't there a java utility class/method to dump the http request (after or
before exec) ? (much easier no?)

thanks anyway 
Peg
-- 
View this message in context: 
http://n2.nabble.com/log-trace-tp4778884p4779279.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2463316


Re: cookie setting with safari browser

2010-01-13 Thread pegpeg
hi, 

that works now with IE6, IE7, IE8, last Safari4 and FF , what I've done is
the following:

code
// NB: version 0 for IE6 compatibility - confirmed
// NB: domain for IE8 - nearly confirmed (tested with P3P header)
CookieSetting cookie = new CookieSetting(0,
getAuthCookieName(),sessionToken, /, getDomainName());

//cookie.setMaxAge(3600);
// NB: max-age commented for Safari - not absolutely sure 

getResponse().getCookieSettings().add(cookie);

// NB: P3P header for Iframe and IE
Form responseHeaders = (Form)
getResponse().getAttributes().get(org.restlet.http.headers);
if (responseHeaders == null) {
responseHeaders = new Form();
getResponse().getAttributes().put(org.restlet.http.headers,
responseHeaders);
}
responseHeaders.add(P3P:CP, \NOI DSP COR NID ADM DEV PSA OUR IND
UNI PUR COM NAV INT STA\);

/code
 
-- 
View this message in context: 
http://n2.nabble.com/cookie-setting-with-safari-browser-tp4271441p4337372.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2436972


Re: cookie setting with safari browser

2010-01-11 Thread pegpeg
Hi Marc, 
Strange thing ;-) ... but effectively the requests come from an IFrame ...
I don't understand what that header is about. 
Do you have more information about hat ? 

Thanks.


Marc Larue wrote:
 
 Is the request from an iframe? Had the same prob with my facebook 
 app, added this response header and now it works!
 
 P3P:CP=\NOI DSP COR NID ADM DEV PSA OUR IND UNI PUR COM NAV INT STA\
 
 /m
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/cookie-setting-with-safari-browser-tp4271441p4284460.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2436237


Re: cookie setting with safari browser

2010-01-10 Thread pegpeg
Thanks for your answer.
I  can only trace the server side (because no Mac OSX available). So I can't
get http trace form clients.
What I can see, basically, is that the cookie setting from the server is not
sent back by the client so that I was doubtful about Cookie version (as I
know Tomcat had problems with version and max-age cookie information), it is
not clear for me what are the rules to follow for server cookie setting for
most (every?) browsers. 
The parameters of CookieSetting constructor are not understandable by me ;-)

I'm gonna try to have more http traces on both sides.

Best regards.

-- 
View this message in context: 
http://n2.nabble.com/cookie-setting-with-safari-browser-tp4271441p4282150.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2436115


cookie setting with safari browser

2010-01-08 Thread pegpeg
Hi all, 

Using currently Restlet (last snapshot), I get a cookie problem with Safari:
the cookie is not sent again back from the browser to the server.

I tested authentification cookie with Firefox (linux/windows) and IE
(windows) with different versions.
For IE, I've used CookieSetting(version=0, ...) because on some versions the
cookie was not kept.

Is there any constraint on Safari (last versions like Version/4.0.2
Safari/530.19) ?

Thanks (for Restlet) !

-- 
View this message in context: 
http://n2.nabble.com/cookie-setting-with-safari-browser-tp4271441p4271441.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2435719