Letractively / sagenb

Automatically exported from code.google.com/p/sagenb
0 stars 0 forks source link

Safari won't save correctly. #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From 
[http://groups.google.com/group/sage-notebook/browse_thread/thread/3ab260fc85030
808# here]:

I've noticed I can no longer download worksheets to a file on Safari 5.1.  
Firefox behaves normally.  This happens with older and newer Sage versions 
(where older means not 4.7.1).  I can confirm this does not work on 
http://flask.sagenb.org/.  

See also 
[http://ask.sagemath.org/question/801/saving-of-notebook-worksheets-under-safari
 this ask.sagemath.org post].

I'm referring to "Save worksheet to a file", by the way.

Original issue reported on code.google.com by kcris...@gmail.com on 11 Oct 2011 at 3:00

GoogleCodeExporter commented 8 years ago
From https://discussions.apple.com/thread/2549025?start=0&tstart=0

The cause is when a web site broadcasts a "fake" link to a file. You click on 
the link and a script, behind the scenes, generates the appropriate HTTP 
headers for the file you can and sends said file back to the user. I guess 
technically the frame load is being interrupted. I will have to investigate 
further, but there does not appear to be any error or problem. If I can't find 
anything I've done wrong or could do better, I will file a bug report on it.

Original comment by jason-go...@creativetrax.com on 11 Oct 2011 at 3:15

GoogleCodeExporter commented 8 years ago
More help: 
http://groups.google.com/group/rubymn/browse_thread/thread/80c7566e72959d3f

http://forums.archon.org/viewtopic.php?f=2&t=874

From 
http://groups.google.com/group/mediaboxsupport/browse_thread/thread/7fa0b60e2dee
46cc, this might be a bug in Safari:

"After further investigation it has been determined that this is a known 
issue, which is currently being investigated by engineering.  This issue has 
been filed in our bug database under the original Bug ID# 8750378."

Original comment by jason-go...@creativetrax.com on 11 Oct 2011 at 3:22

GoogleCodeExporter commented 8 years ago
Actually, I just tried downloading a worksheet on sage 4.7.1, 4.7.1 with my 
current flask notebook, demo.sagenb.org, and test.sagenb.org (on safari 5.1 on 
osx 10.6.8).  In all cases, I got a file, even though sometimes it displayed an 
error.

So the question is: did you get a file in your Downloads folder, even if there 
was an error?

Original comment by jason-go...@creativetrax.com on 11 Oct 2011 at 3:36

GoogleCodeExporter commented 8 years ago
Huh, funny.  I have the same Safari on the same Mac version, but nothing.  Not 
even a hidden file - I checked with ls -a!

Maybe flask.sagenb.org has an older codebase that causes this problem?  I am 
pretty sure that older Sages also have this problem, but I unfortunately don't 
have time to try a lot of different ones right now :(

Original comment by kcris...@gmail.com on 11 Oct 2011 at 3:46

GoogleCodeExporter commented 8 years ago
It looks like Safari 5.1.1 was released today.  kcrisman: does 5.1.1 have the 
same problem for you?

Original comment by jason-go...@creativetrax.com on 12 Oct 2011 at 9:27

GoogleCodeExporter commented 8 years ago
I tried it on demo.sagenb.org, same problem.  No error message.  Also, the File 
-> Print option does not work (though the "Print" button with the icon does 
work).

I have not yet had the chance to try 5.1.1.  It and the security update 
requires a restart.  I'll try this later.

Original comment by kcris...@gmail.com on 13 Oct 2011 at 2:05

GoogleCodeExporter commented 8 years ago
Update - at least one user can't use FF because Jmol doesn't work there.  

Original comment by kcris...@gmail.com on 13 Oct 2011 at 1:45

GoogleCodeExporter commented 8 years ago
Safari 5.1.1 does not work as well, still demo.sagenb.org.

Jason, is it possible there is some cookie or something else on our system that 
could make things behave differently from yours?  Otherwise it would seem we 
have identical setups... ?

Original comment by kcris...@gmail.com on 13 Oct 2011 at 2:22

GoogleCodeExporter commented 8 years ago
On sagenb.org, Safari 5.1.1 works well for me, in that there is no longer any 
error, it just saves.  On demo.sagenb.org, I get the activity window error, but 
a file does show up in my downloads window anyway.  Weird.

Original comment by jason-go...@creativetrax.com on 13 Oct 2011 at 3:16

GoogleCodeExporter commented 8 years ago
I see that Safari 5.1.2 is released now, and the changes listed include "Allow 
PDFs to be displayed within web content", which I think may have been the root 
of the problem here.

Maybe the difference is that I don't have Safari display things inline; I 
always have Safari download things.

Original comment by jason-go...@creativetrax.com on 15 Dec 2011 at 2:56

GoogleCodeExporter commented 8 years ago
?  What would pdfs have to do with it?  

Can I test this change of yours?  Is it the preference "Open 'safe' files after 
downloading"?

Original comment by kcris...@gmail.com on 15 Dec 2011 at 3:04

GoogleCodeExporter commented 8 years ago
Apparently it wasn't that preference, because that didn't work, even after 
restarting Safari.

Original comment by kcris...@gmail.com on 15 Dec 2011 at 3:10

GoogleCodeExporter commented 8 years ago
The bug posted above was about displaying pdf files, but the error message was 
the same.  It looks like Safari 5.1.2 may have fixed the bug about displaying 
pdf files, which I hope might have fixed the underlying issue we were having.

Can you try upgrading to Safari 5.1.2 and see if that fixes the problem?

Original comment by jason-go...@creativetrax.com on 15 Dec 2011 at 3:22

GoogleCodeExporter commented 8 years ago
I was doing that while you made this comment :)

But it doesn't seem to have fixed anything.

Original comment by kcris...@gmail.com on 15 Dec 2011 at 3:28

GoogleCodeExporter commented 8 years ago
I also can't figure out your preference that you have that works for you.  

I also don't get any error message, unlike your cases in the past.  Nothing in 
the activity window, nothing in Downloads.  Weird.

Original comment by kcris...@gmail.com on 15 Dec 2011 at 3:31

GoogleCodeExporter commented 8 years ago
Reported to true upstream.

Original comment by kcris...@gmail.com on 3 Dec 2014 at 8:30