Edgewall Software
Modify

Ticket #5226 (closed defect: worksforme)

Opened 3 years ago

Last modified 2 years ago

Unable to upload/download attachments w/ Safari

Reported by: synfinatic@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords: attachments safari needinfo
Cc: dpeckham@…

Description

Using Safari 2.0.4 (419.3) under OS X 10.4.9, I'm unable to upload or download attachments. When uploading a file, the submission seems to hang, returning a timeout error. Downloading binary attachments (like gziped files) causes Safari to download the webpage download screen, not the file itself.

Attachments

testing.txt (7 bytes) - added by sid 3 years ago.
test file uploaded using Safari
Picture 8.png (40.6 KB) - added by anonymous 3 years ago.
Tried with Safari 3, OS X (Intel) 10.4.10, upload to this ticket
green_apple_logo.jpg (20.6 KB) - added by wms 3 years ago.
green_apple_logo.2.jpg (20.6 KB) - added by wms 3 years ago.

Change History

comment:1 Changed 3 years ago by aljungberg at wireload.net

I have encountered this problem as well. The upload hangs. The log files reveal a message as such,

... File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 37, in readline\n return self.req.readline(size), referer: ... IOError: Client read error (Timeout?)

The same upload works fine in Firefox.

comment:2 Changed 3 years ago by lammert [at] begeleidingentraining [dot] nl

I also encountered this problem, when i try to upload a file in Safari 2.0.4 (419.3) the page keeps loading for a few minutes and finally it gives an 500 Internal Server Error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, email@domain.ext and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

when i opened the httpd-error-log it gives the following error:

[Tue Jun 26 12:05:51 2007] [error] [client 10.1.2.42] (70007)The timeout specified has expired: Error reading request entity data, referer: https://sub.domain.ext/cgi-bin/repo/trac.cgi/attachment/wiki/WikiStart?action=new

And as the person above this message all works fine in Firefox 2.0.0.4

comment:3 Changed 3 years ago by aljungberg at wireload.net

This appears to have been resolved in the latest version.

Changed 3 years ago by sid

test file uploaded using Safari

comment:4 Changed 3 years ago by sid

  • Keywords needinfo added

I just used Safari to upload a file fine to this ticket. Can you verify upload and download of attachments is working for you as well?

comment:5 Changed 3 years ago by synfinatic@…

  • Status changed from new to closed
  • Resolution set to fixed

Works for me.

comment:6 Changed 3 years ago by eblot

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:7 Changed 3 years ago by eblot

  • Status changed from reopened to closed
  • Resolution set to worksforme

Changed 3 years ago by anonymous

Tried with Safari 3, OS X (Intel) 10.4.10, upload to this ticket

comment:8 Changed 3 years ago by anonymous

  • Status changed from closed to reopened
  • Resolution worksforme deleted

I am not able to upload anything to this ticket, using Safari 3 on OS X Intel 10.4.10.

We have the same issues with our internal 0.10.4 trac installation(s).

From a discussion I have had with another coworker (this may or may not be correct:

5:08:19 PM figured out the [Trac and] Safari problem 5:09:04 PM it's unable to submit an HTTP upload over a connection that is reused from the keep-alive pool, so I have to get to the file upload page and then just wait there for a minute for the kept-alive connection to expire 5:09:19 PM then I can submit and it goes through 5:10:31 PM what's more interesting is that it works for small files 5:10:37 PM it's only large files that I have this problem with

comment:9 Changed 3 years ago by Dave Peckham <dpeckham@…>

  • Cc peckhda added

I tested this with Safari 3.0.4 and confirmed that the upload succeeds if you wait at least one minute after opening the Attachments page. It fails otherwise.

comment:10 Changed 3 years ago by Dave Peckham <dpeckham@…>

  • Cc dpeckham@… added; peckhda removed

comment:11 Changed 3 years ago by eblot

I can't reproduce this issue w/ Safari 3.0.4 and the current trunk (using Apache 2.2 or tracd)

Changed 3 years ago by wms

Changed 3 years ago by wms

comment:12 Changed 2 years ago by cboos

  • Status changed from reopened to closed
  • Resolution set to worksforme

Weird Safari specific issue. Works for eblot, not Dave but he gives a workaround (comment:9).

Assuming it works for recent versions of Safari. Please reopen if it's not the case (ideally, provide a patch!)

comment:13 Changed 2 years ago by Dave Peckham

This works for me with Safari 3.1 (525.13).

comment:14 Changed 2 years ago by cboos

Thanks for the feedback, Dave. And now that there's a Safari build for Windows, it's part of the Web browsers I test regularly with Trac.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.