httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lena.Stevano...@weirminerals.com
Subject [users@httpd] Apache on Linux truncates file
Date Thu, 19 Apr 2007 02:40:54 GMT




Hi,

I have a java servlets that uses the HttpClient to submit the credentials
for a basic authorization to an Apache 2.0.46 server running on Red Hat
linux. After passing on the credentials, the requested file is displayed in
the client's browser. When accessing tiff or pdf images, all the files are
opened correctly regardless of their size (from couple of KB to couple of
MB), but when I want to open a .pfx file I don't receive the whole file and
I can't run it. When I tried the same application to access the same file
on a Apache 2.0.46 server running on Win32, I received the complete file.
Here is an abstract of my log file from the Apache on Red Hat, where I can
see that the file size that is returned by the HTTPClient is the exact file
size, but from the access log it shows that the GET returns less bytes.

                                                                           
 [18/Apr/2007:16 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]     
 :07:10] warning HttpMethodDirector - Authentication scope: BASIC 'By      
 ( 2352):        authorization Only'@myhost:80                             
                                                                           


                                                                           
 [18/Apr/2007:16:07:1 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT        
 0] warning ( 2352):  [DEBUG] HttpMethodDirector - Retry authentication    
                                                                           


                                                                           
 [18/Apr/2007:16:0 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]   
 7:10] warning (   HttpMethodBase - Should close connection in response to 
 2352):            directive: close                                        
                                                                           


                                                                           
 [18/Apr/2007:16: CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]    
 07:10] warning ( HttpConnection - Connection is locked. Call to           
 2352):           releaseConnection() ignored.                             
                                                                           


                                                                           
 [18/Apr/2007:16 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]     
 :07:10] warning HttpMethodDirector - Authenticating with BASIC 'By        
 ( 2352):        authorization Only'@myhost:80                             
                                                                           


                                                                           
 [18/Apr/2007:16: CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]    
 07:10] warning ( HttpMethodParams - Credential charset not configured,    
 2352):           using HTTP element charset                               
                                                                           


                                                                           
 [18/Apr/2007:16:07 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]  
 :10] warning (     HttpConnection - Open connection to myhost:80          
 2352):                                                                    
                                                                           


                                                                           
 [18/Apr/2007:1 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]      
 6:07:10]       header - >> "GET                                           
 warning (      /vault/users_volume/sunh_41c62016/mat0001_any_adi00lk0tfe2 
 2352):         u.pfx HTTP/1.1[\r][\n]"                                    
                                                                           


                                                                           
 [18/Apr/2007:16:07: CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG] 
 10] warning (       HttpMethodBase - Adding Host request header           
 2352):                                                                    
                                                                           


                                                                           
 [18/Apr/2007:16 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]     
 :07:10] warning header - >> "User-Agent: Mozilla/4.0 (compatible; MSIE    
 ( 2352):        6.0; Windows NT 5.0)[\r][\n]"                             
                                                                           


                                                                           
 [18/Apr/2007:16: CORE3283: stderr: 2007/04/18 06:07:10:562 GMT [DEBUG]    
 07:10] warning ( header - >> "Authorization: Basic                        
 2352):           dGVjaHdlYjpUMjg5VDFEODkxMg==[\r][\n]"                    
                                                                           


                                                                           
 [18/Apr/2007:16:07:1 CORE3283: stderr: 2007/04/18 06:07:10:562 GMT        
 0] warning ( 2352):  [DEBUG] header - >> "Host: myhost[\r][\n]"           
                                                                           


                                                                           
 [18/Apr/2007:16:07:10]   CORE3283: stderr: 2007/04/18 06:07:10:562 GMT    
 warning ( 2352):         [DEBUG] header - >> "[\r][\n]"                   
                                                                           


                                                                           
 [18/Apr/2007:16:07:1 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT        
 0] warning ( 2352):  [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"        
                                                                           


                                                                           
 [18/Apr/2007:16:07 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG]  
 :10] warning (     header - << "Date: Wed, 18 Apr 2007 06:05:11           
 2352):             GMT[\r][\n]"                                           
                                                                           


                                                                           
 [18/Apr/2007:16:07: CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG] 
 10] warning (       header - << "Server: Apache/2.0.46 (Red Hat)[\r][\n]" 
 2352):                                                                    
                                                                           


                                                                           
 [18/Apr/2007:16:0 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG]   
 7:10] warning (   header - << "Last-Modified: Mon, 18 Jul 2005 02:03:50   
 2352):            GMT[\r][\n]"                                            
                                                                           


                                                                           
 [18/Apr/2007:16:07: CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG] 
 10] warning (       header - << "ETag: "1910028-631-2bb0d80"[\r][\n]"     
 2352):                                                                    
                                                                           


                                                                           
 [18/Apr/2007:16:07:1 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT        
 0] warning ( 2352):  [DEBUG] header - << "Accept-Ranges: bytes[\r][\n]"   
                                                                           


                                                                           
 [18/Apr/2007:16:07:1 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT        
 0] warning ( 2352):  [DEBUG] header - << "Content-Length: 1585[\r][\n]"   
                                                                           


                                                                           
 [18/Apr/2007:16:07:10 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT       
 ] warning ( 2352):    [DEBUG] header - << "Connection: close[\r][\n]"     
                                                                           


                                                                           
 [18/Apr/2007:16:07 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG]  
 :10] warning (     header - << "Content-Type: text/plain;                 
 2352):             charset=UTF-8[\r][\n]"                                 
                                                                           


                                                                           
 [18/Apr/2007:16:07:1 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT        
 0] warning ( 2352):  [DEBUG] HttpMethodBase - Buffering response body     
                                                                           


                                                                           
 [18/Apr/2007:16:0 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG]   
 7:10] warning (   HttpMethodBase - Should close connection in response to 
 2352):            directive: close                                        
                                                                           


                                                                           
 [18/Apr/2007:16:0 CORE3283: stderr: 2007/04/18 06:07:10:609 GMT [DEBUG]   
 7:10] warning (   HttpConnection - Releasing connection back to           
 2352):            connection manager.                                     
                                                                           



And in the access log I got this:

203.15.187.22 - - [18/Apr/2007:16:07:10 +1000] "GET
/servlet/ReqPlusAuthentication?file=vault/users_volume/sunh_41c62016/mat0001_any_adi00lk0tfe2u.pfx
 HTTP/1.1" 200
1496

Could anyone, please, tell me if there is some setting in the Apache that I
need to configure? Or what could be causing this behaviour?

Thank you very much in advance.

Regards,
Lena Stevanoska
Application Support Analyst

Pump Technology Centre
Weir Minerals Australia Ltd

1 Marden St
Artarmon, NSW, 2064
Australia

T : +61 2 9934 5359
F:  +61 2 9934 5242
E:  Lena.Stevanoska@weirminerals.com
W: www.weirminerals.com



The information contained in this email (including any attachments) is
confidential, subject to copyright and for the use of the intended
recipient only. If you are not the intended recipient please delete this
message after notifying the sender. Unauthorised retention, alteration or
distribution of this email is forbidden and may be actionable.

Attachments are opened at your own risk and you are advised to scan
incoming email for viruses before opening any attached files. We give no
guarantee that any communication is virus-free and accept no responsibility
for virus contamination or other system loss or damage of any kind.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message