may i add that for me this seems to only happen with larger files. smaller .jpg files can be opened successfully, i guess this is cache size related.
 
also it may be that you have not tested with a secured api, since the problem is related to caching of objects that require some kind of security access, which is why my solution valve is on the authenticator.
 
-----Original Message-----
From: Prashant Pandey [mailto:Prashant.Pandey@unisa.edu.au]
Sent: 10 September 2007 03:14
To: Chris Wilper; Hassan, Steve; fedora-commons-users@lists.sourceforge.net
Subject: RE: [Fedora-commons-users] FW: fedora 2.2/datastream ie7 bug

Chris and Steve,

 

I haven’t had time to dig deeper yet, however I am attaching a mail I had send earlier addressing the issue. Hope it helps you recreate the problem at your end.

 

I shall keep you posted on the developments at my end.

 

Cheers,

Prashant
University of South Australia Library

http://people.unisa.edu.au/Prashant.Pandey

 

 

From: Chris Wilper [mailto:cwilper@cs.cornell.edu]
Sent: Friday, 7 September 2007 8:52 PM
To: Hassan, Steve; Prashant Pandey; fedora-commons-users@lists.sourceforge.net
Subject: RE: [Fedora-commons-users] FW: fedora 2.2/datastream ie7 bug

 

Steve and Prashant,

Unfortunately I haven't been able to reproduce this problem.
Can you send more info:

  - Whether you're fronting Fedora with a proxy, product and version#
    (in this case can you try going around the proxy as a test?)
  - Any pointers you've found to IE7 issues with chunked encoding
  - Anything else you think might help

Here's what I've tried so far:

I installed Fedora 2.2.1, created a new object with a copy of
the application/msword datastream below, and it came across
fine in Firefox and IE7.

I also tried putting an Apache httpd in front acting as
a proxy, and it came across fine that way, too.

I also tried requiring basic authN on API-A with no difference.

I noted that the transfer-encoding (and Apache when
put in front) is chunked in all cases, but I can't find anything
online that indicates IE7 has problems with this.

I'm using IE 7.0.5730.11 on WinXP SP2 and Apache httpd 2.2.4.

Thanks,
Chris

-----Original Message-----
From: fedora-commons-users-bounces@lists.sourceforge.net on behalf of Hassan, Steve
Sent: Fri 9/7/2007 5:16 AM
To: Prashant Pandey; fedora-commons-users@lists.sourceforge.net
Subject: Re: [Fedora-commons-users] FW:  fedora 2.2/datastream ie7 bug

mine might be working because i am not using the MIMETypedStream to open the datasream,

                MIMETypedStream mts = FedoraAccess.getDatastreamDissemination(pid,dsID,null);
                return mts.getStream();

instead i use the fedora get url, for which i have to implement an authenticator if it's protected

    String url = getDirectURL(pid, dsid, dateTime);
    // e.g. url = http://oai.esds.ac.uk:8080/fedora/get/archive:6/DS1/2007-07-14T04:14:05.800Z
    return new URL(url).openStream();

and then i buffer this back into the response stream of the client, which i do not chunk.

but maybe other factors are different, i am using fedora 2.2.1 with bundled tomcat, java 1.5.0_11 , mysql 5, windows xp, and my front end is inside the same tomcat as fedora, so should suffer from chunking as well if that is the case.

steve

> -----Original Message-----
> From: fedora-commons-users-bounces@lists.sourceforge.net
> [mailto:fedora-commons-users-bounces@lists.sourceforge.net]On
> Behalf Of
> Prashant Pandey
> Sent: 07 September 2007 07:54
> To: fedora-commons-users@lists.sourceforge.net
> Subject: [Fedora-commons-users] FW: fedora 2.2/datastream ie7 bug
>
>
>
> Hi,
> I am experiencing the same issue, where the DataStream is not able to
> load in IE7. I tried putting the fix below, however it
> doesn't seems to
> work at my end.
>
> I have investigated the matter further and found the fedora tomcat
> http1.1 response come with transfer-encoding chunked, which is not
> properly supported or handled by IE7.
>
> I guess we need to turn that transfer-encoding off if possible.
>
> I would appreciate if people can share their thoughts on this issue.
>
> cheers
> Prashant
> University of South Australia Library
> http://people.unisa.edu.au/Prashant.Pandey
>
>
> -----Original Message-----
> From: fedora-commons-users-bounces@lists.sourceforge.net
> [mailto:fedora-commons-users-bounces@lists.sourceforge.net]
> On Behalf Of
> Hassan, Steve
> Sent: Friday, 7 September 2007 3:49 AM
> To: Fedora-commons-users@lists.sourceforge.net
> Subject: Re: [Fedora-commons-users] fedora 2.2/datastream ie7 bug
>
> i fixed it, 2 fixes were required, one for fedora and one for my
> application.
>
> for fedora (well tomcat actually) is to add this to server.xml
>
>         <Context path="/fedora" docBase="fedora">
>                   <Valve
> className="org.apache.catalina.authenticator.FormAuthenticator"
> disableProxyCaching="false" />
>                 </Context>
>
> and for me i added this to the header
>
>             // added to try to fix IE7 download bug

> response.setHeader("Cache-Control","no-cache,no-store,must-rev
> alidate");
>             response.setHeader("Pragma","no-cache");
>             response.setDateHeader("Expires", -1);            
>             //
>
> now all working fine :-)
>
> > -----Original Message-----
> > From: Hassan, Steve
> > Sent: 06 September 2007 17:01
> > To: Fedora-commons-users@lists.sourceforge.net
> > Subject: fedora 2.2/datastream ie7 bug
> >
> >
> > i think i have found a fedora 2.2/datastream ie7 bug (this
> > works fine in fedora 2.1.1).
> >
> > enter the following url directly into ie7/firefox (do not
> > click on the link)
> >
> > http://oai.esds.ac.uk:8080/fedora/get/archive:40/DS1
> >
> > it works in all browsers.
> >
> > i cannot demonstrate this to you in fedora 2.2 as it's behind
> > our firewall but when i enter the datastream url
> (http://dapc85:8080/fedora/get/archive:40/DS1 below not accessible
> outiside campus) directly into my browser i get the following error
> message (attached).
>
> but this same url works fine in firefox.
>
> incidentally in my code i stream the above url and i noticed so far it
> copies the stream fine, but that an exception is thrown as soon as the
> outputstream is closed. i am testing not closing the stream,
> which will
> leave the file open, but then the fedora/get is still in my
> opinion not
> working.
>
> steve
> --
> Steve Hassan
> Systems and Applications Developer
> http://www.data-archive.ac.uk/
>
>
>
>
> --------------------------------------------------------------
> ----------
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and
> a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and
> a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users