httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43913] New: - File and setenvif directive for large PDF file
Date Tue, 20 Nov 2007 11:34:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43913>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43913

           Summary: File and setenvif directive for large PDF file
           Product: Apache httpd-2
           Version: 2.0.52
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jean.miart@sanofi-aventis.com


I found a strange problem than came with an httpd directive even it may be
caused by acrobat reader plug-in or by the way browsers react in the particular
case.

I’m using different httpd servers on different platforms, all using version 2.0.
For this explanation, the first one is a RedHat Enterprise LINUX release 4,
update 4, with httpd server version 2.0.52.

The DNS name of server daet99.d1.f1.enterprise

The httpd.conf file contains the following directive:

Alias /hpwd "/FS03/hpwd"
<Directory "/FS03/hpwd">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

On the server, the directory involved contains:
ls -lh /FS03/hpwd/
total 99M
-rw-r--r--  1 root root 68K Nov 16 11:32 CSS-2.0.pdf
-rw-r--r--  1 root root 12M Nov 16 11:28 mysql-refman-5.0-en.a4.pdf
-rw-r--r--  1 root root 87M Nov 19 10:37 Yes-CloseToTheEdge.mp3

There are 2 PDF files, a small one and a large one, and a very large MP3 file.

I use the following browsers on my windows workstation:
Microsoft Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr.070227-2254 and Mozilla
Firefox 2.0.0.9
Both browsers use plug-in to handle pdf and mp3 files (Acrobat Reader for pdf,
and Apple Quicktime for mp3). I use Acrobat Reader 7.0.

Everything’s ok with both browsers when I type the complete URL of the different
files (http://daet99.d1.f1.enterprise/hpwd/CSS-2.0.pdf for example) 

Now I add the following directives to block direct access to pdf and mp3 files,
and only accept access from another httpd server with DNS name
daet6.d1.f1.enterprise:

<Files ~ "\.pdf$">
   Order allow,deny
   SetEnvIf Referer "^http:\/\/daet6\.d1\.f1\.enterprise\/" hpwdAccess
   Allow from env=hpwdAccess
</Files>
<Files ~ "\.mp3$">
   Order allow,deny
  SetEnvIf Referer "^http:\/\/daet6\.d1\.f1\.enterprise\/" hpwdAccess
   Allow from env=hpwdAccess
</Files>

Now I got an error message when I try to access file with previous URL. Fine,
that’s what I wanted.

Then I create a web page that contains, among other:

<a href="http://daet99.d1.f1.enterprise/hpwd/mysql-refman-5.0-en.a4.pdf">Mysql
Reference Manual (12Mb)</a>
<br>
<a href="http://daet99.d1.f1.enterprise/hpwd/CSS-2.0.pdf">CSS Reference Card
(64K)</a>
<br>
<a href="http://daet99.d1.f1.enterprise/hpwd/Yes-CloseToTheEdge.mp3">Close to
the Edge (Yes)</a>
<hr>

And I install the page so it’s may be use with URL http://daet6.d1.f1.enterprise/...

Now when I click on the links, using the new page:
With MS Internet Explorer:
Everything’s OK
With Mozilla Firefox:
OK for small PDF file and large mp3 file, but with large PDF file, I received
(after a while) the following popup message:

Acrobat Reader
A file I/O error occurred. The file connection timed out.

If I change the setup for pdf handling in firefox, to use acrobat reader program
rather than acrobat plug-in, if works fine.

So it seems that the problem is within Acrobat Reader plug-in on Firefox, even
if it’s after including httpd directives, but:
If I try to save the files using right click and “save target link as …” it
works fine on Firefox but it failed on IE, for all three files, with a popup
message:

Internet Explorer cannot download …
Internet Explorer was not able to open the Internet site. The requested site is
either unavailable or cannot be found. Please try again later.

I made another test where I change role between daet99 and daet6 (daet6 is HP/UX
11.11 with httpd server 2.0.55), with same results. I also made a test with
httpd server 2.2.4 (fedora 7). Same result.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message