Hello Andrea,

Hows it going, long time :-)

Can you commit this fix onto the 1.5.x branch as well?

Cheers,
Mark

On Dec 10, 2008, at 7:54 AM, [EMAIL PROTECTED] wrote:

> Revision: 3327
>          http://dspace.svn.sourceforge.net/dspace/?rev=3327&view=rev
> Author:   bollini
> Date:     2008-12-10 15:54:07 +0000 (Wed, 10 Dec 2008)
>
> Log Message:
> -----------
> Patch for Bug # 2414062 Auth request delayed using RetrieveServlet
>
> Modified Paths:
> --------------
>    trunk/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/ 
> webui/servlet/RetrieveServlet.java
>
> Modified: trunk/dspace-jspui/dspace-jspui-api/src/main/java/org/ 
> dspace/app/webui/servlet/RetrieveServlet.java
> ===================================================================
> --- trunk/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/ 
> webui/servlet/RetrieveServlet.java    2008-12-09 13:44:30 UTC (rev 3326)
> +++ trunk/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/ 
> webui/servlet/RetrieveServlet.java    2008-12-10 15:54:07 UTC (rev 3327)
> @@ -115,6 +115,9 @@
>             log.info(LogManager.getHeader(context, "view_bitstream",
>                     "bitstream_id=" + bitstream.getID()));
>
> +            // Pipe the bits
> +            InputStream is = bitstream.retrieve();
> +
>             // Set the response MIME type
>              
> response.setContentType(bitstream.getFormat().getMIMEType());
>
> @@ -122,9 +125,6 @@
>             response.setHeader("Content-Length",  
> String.valueOf(bitstream
>                     .getSize()));
>
> -            // Pipe the bits
> -            InputStream is = bitstream.retrieve();
> -
>             Utils.bufferedCopy(is, response.getOutputStream());
>             is.close();
>             response.getOutputStream().flush();
>
>
> This was sent by the SourceForge.net collaborative development  
> platform, the world's largest Open Source development site.
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,  
> Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to  
> help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> DSpace-changelog mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dspace-changelog

~~~~~~~~~~~~~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage




------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to