You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Jason Harrop <jh...@speedlegal.com> on 2004/07/28 07:55:51 UTC

If-Modified-Since broken?

Hi

I'm testing Slide 2.

Under certain circumstances, XML Spy will include an If-Modified-Since 
header in its GET requests.

XML Spy appears to be working correctly.

However, Slide is incorrectly returning a 304.  See below for transcript 
of what i did.

I wanted to see whether Slide 1x behaved the same.  However, XML Spy 
refused to include an If-Modified-Since header again Slide 1x, 
presumably because I have my Slide 1x server set up to authenticate.

My Slide 2 server currently has authentication turned off.

I guess I could change the authentication settings, and see what that 
does to the behaviour, but irrespective of that, there seems to be a bug 
in Slide 2's If-Modified-Since handling.

cheers,

Jason


--------------------



create file in XML Spy, and save to URL

then, with cadaver:

dav:/taminowebdavserver/SR/files/> propget testing-IfModified2.xml

getlastmodified = Wed, 28 Jul 2004 03:56:36 GMT
creationdate = 2004-07-28T03:56:36Z
modificationdate = 2004-07-28T03:56:36Z

close in Spy, and GET it.

Spy correctly doesn't write an I-M-S header

The 200 response had a Last-Modified header of Wed, 28 Jul 2004 03:56:36 
GMT, which is correct


Now, modify the resource using cadaver

dav:/taminowebdavserver/SR/files/> put testing-IfModified2.xml
Uploading testing-IfModified2.xml to 
`/taminowebdavserver/SR/files/testing-IfModified2.xml':
Progress: [=============================>] 100.0% of 198 bytes succeeded.


dav:/taminowebdavserver/SR/files/> propget testing-IfModified2.xml

getlastmodified = Wed, 28 Jul 2004 04:07:00 GMT
creationdate = 2004-07-28T03:56:36Z
modificationdate = 2004-07-28T04:07:00Z

Close XML Spy.

Start it again, and open the file:

The GET request includes

	If-Modified-Since: Wed, 28 Jul 2004 03:56:36 GMT

(which is correct)

but the response is 304 Not Modified, with

	Date: Wed, 28 Jul 2004 04:12:30

even though the getlastmodified property is Wed, 28 Jul 2004 04:07:00 GMT


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: If-Modified-Since broken?

Posted by Jason Harrop <jh...@speedlegal.com>.
thanks Stefan - your patch to AbstractWebdavMethod did the trick thanks. 
cheers, Jason

Stefan_Lu"tzkendorf wrote:
> This problem is resolved in CVS head and will be available in next version.
> 
> BTW:
>  authentication is independent with the If-Mdified stuff
>  the Date header contains the date of the response and has nothing to do
>  with the Last-Modified date
> 
> Regards, Stefan
> 
> Jason Harrop wrote:
> 
>> Hi
>>
>> I'm testing Slide 2.
>>
>> Under certain circumstances, XML Spy will include an If-Modified-Since 
>> header in its GET requests.
>>
>> XML Spy appears to be working correctly.
>>
>> However, Slide is incorrectly returning a 304.  See below for 
>> transcript of what i did.
>>
>> I wanted to see whether Slide 1x behaved the same.  However, XML Spy 
>> refused to include an If-Modified-Since header again Slide 1x, 
>> presumably because I have my Slide 1x server set up to authenticate.
>>
>> My Slide 2 server currently has authentication turned off.
>>
>> I guess I could change the authentication settings, and see what that 
>> does to the behaviour, but irrespective of that, there seems to be a 
>> bug in Slide 2's If-Modified-Since handling.
>>
>> cheers,
>>
>> Jason
>>
>>
>> --------------------
>>
>>
>>
>> create file in XML Spy, and save to URL
>>
>> then, with cadaver:
>>
>> dav:/taminowebdavserver/SR/files/> propget testing-IfModified2.xml
>>
>> getlastmodified = Wed, 28 Jul 2004 03:56:36 GMT
>> creationdate = 2004-07-28T03:56:36Z
>> modificationdate = 2004-07-28T03:56:36Z
>>
>> close in Spy, and GET it.
>>
>> Spy correctly doesn't write an I-M-S header
>>
>> The 200 response had a Last-Modified header of Wed, 28 Jul 2004 
>> 03:56:36 GMT, which is correct
>>
>>
>> Now, modify the resource using cadaver
>>
>> dav:/taminowebdavserver/SR/files/> put testing-IfModified2.xml
>> Uploading testing-IfModified2.xml to 
>> `/taminowebdavserver/SR/files/testing-IfModified2.xml':
>> Progress: [=============================>] 100.0% of 198 bytes succeeded.
>>
>>
>> dav:/taminowebdavserver/SR/files/> propget testing-IfModified2.xml
>>
>> getlastmodified = Wed, 28 Jul 2004 04:07:00 GMT
>> creationdate = 2004-07-28T03:56:36Z
>> modificationdate = 2004-07-28T04:07:00Z
>>
>> Close XML Spy.
>>
>> Start it again, and open the file:
>>
>> The GET request includes
>>
>>     If-Modified-Since: Wed, 28 Jul 2004 03:56:36 GMT
>>
>> (which is correct)
>>
>> but the response is 304 Not Modified, with
>>
>>     Date: Wed, 28 Jul 2004 04:12:30
>>
>> even though the getlastmodified property is Wed, 28 Jul 2004 04:07:00 GMT
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> !DSPAM:4107a11c266971379877185!
> 
> 
> 

-- 

Jason Harrop
CTO, SPEEDLEGAL
jharrop@speedlegal.com

Melbourne
www.speedlegal.com

SmartPrecedent(R) software
The most intelligent way to create documents


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: If-Modified-Since broken?

Posted by Stefan Lützkendorf <lu...@apache.org>.
This problem is resolved in CVS head and will be available in next version.

BTW:
  authentication is independent with the If-Mdified stuff
  the Date header contains the date of the response and has nothing to do
  with the Last-Modified date

Regards, Stefan

Jason Harrop wrote:
> Hi
> 
> I'm testing Slide 2.
> 
> Under certain circumstances, XML Spy will include an If-Modified-Since 
> header in its GET requests.
> 
> XML Spy appears to be working correctly.
> 
> However, Slide is incorrectly returning a 304.  See below for transcript 
> of what i did.
> 
> I wanted to see whether Slide 1x behaved the same.  However, XML Spy 
> refused to include an If-Modified-Since header again Slide 1x, 
> presumably because I have my Slide 1x server set up to authenticate.
> 
> My Slide 2 server currently has authentication turned off.
> 
> I guess I could change the authentication settings, and see what that 
> does to the behaviour, but irrespective of that, there seems to be a bug 
> in Slide 2's If-Modified-Since handling.
> 
> cheers,
> 
> Jason
> 
> 
> --------------------
> 
> 
> 
> create file in XML Spy, and save to URL
> 
> then, with cadaver:
> 
> dav:/taminowebdavserver/SR/files/> propget testing-IfModified2.xml
> 
> getlastmodified = Wed, 28 Jul 2004 03:56:36 GMT
> creationdate = 2004-07-28T03:56:36Z
> modificationdate = 2004-07-28T03:56:36Z
> 
> close in Spy, and GET it.
> 
> Spy correctly doesn't write an I-M-S header
> 
> The 200 response had a Last-Modified header of Wed, 28 Jul 2004 03:56:36 
> GMT, which is correct
> 
> 
> Now, modify the resource using cadaver
> 
> dav:/taminowebdavserver/SR/files/> put testing-IfModified2.xml
> Uploading testing-IfModified2.xml to 
> `/taminowebdavserver/SR/files/testing-IfModified2.xml':
> Progress: [=============================>] 100.0% of 198 bytes succeeded.
> 
> 
> dav:/taminowebdavserver/SR/files/> propget testing-IfModified2.xml
> 
> getlastmodified = Wed, 28 Jul 2004 04:07:00 GMT
> creationdate = 2004-07-28T03:56:36Z
> modificationdate = 2004-07-28T04:07:00Z
> 
> Close XML Spy.
> 
> Start it again, and open the file:
> 
> The GET request includes
> 
>     If-Modified-Since: Wed, 28 Jul 2004 03:56:36 GMT
> 
> (which is correct)
> 
> but the response is 304 Not Modified, with
> 
>     Date: Wed, 28 Jul 2004 04:12:30
> 
> even though the getlastmodified property is Wed, 28 Jul 2004 04:07:00 GMT
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org