Closed Bug 485194 Opened 15 years ago Closed 15 years ago

unable to download Yahoo Classic Mail Attachments

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: hoodsmommy2, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.19) Gecko/20081212 Camino/1.6.6 (like Firefox/2.0.0.19)
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.19) Gecko/20081212 Camino/1.6.6 (like Firefox/2.0.0.19)

downloading attachment from Yahoo's Classic Mail in Camino 1.6 (Mac OS 10.3.9) suddenly stopped working and sends me instead to yahoo.com main page

      I have been using Camino (now 1.6.6) under Mac OS 10.3.9 for many
years.  This week I tried downloading attachments from Yahoo's Classic Mail, which has never been a
problem before.  Instead of bringing up the popup window that allows me
to save the file to my desktop, clicking "download file" takes
me to the "yahoo.com" main page.  The download file link works
under Firefox 2 and in Yahoo's New mail, but unfortunately other more important features of their new mail don't work with Camino, so I've been sticking with the Classic version.

I presume that this is Yahoo's fault (my guess is a javascript error of some kind??).  I contacted them and got the usual canned reply from a level-1 responder that says I should upgrade my browser.  I might get better service if you can tell me what they're doing wrong - then I can forward the info to them.

Reproducible: Always

Steps to Reproduce:
1.send yourself an email with an attachment to an account using classic version of Yahoo mail
2.try to download attachment

Actual Results:  
you get sent to http://yahoo.com

Expected Results:  
a pop-up window occurs saying that the d/l has been scanned for viruses and found to be virus free.  Either offers you the option of downloading or automatically downloads the attachment
If it still works fine in Firefox 2.0.0.19, it sounds like this is a TE bug (broken browser-sniffing yet again, hooray!).

Does it work if you spoof your user-agent as Firefox 2 using

http://pimpmycamino.com/parts/user-agent

?
Getting an attachement is a two-part process.  First you click on a link which scans the attachment for viruses.  Then a pop-up window is presented that says "download this attachment" - in reality as soon as the pop-up window shows up the attachment is downloaded.

Spoofing Safari (but not Firefox) helps a little **if** I have my pop-up blocker enabled and it's the first time I've logged into my Yahoo account.  After Yahoo mail scans for virus, I get a popup blocker message from Camino.  If I click on "allow (once)" then the attachment downloads correctly.  But if I try a 2nd time, the pop-up blocker message doesn't appear and I get taken to Yahoo's main page.  

Here's the link that scans for viruses
http://us.mc368.mail.yahoo.com/mc/showMessage?pSize=25&fid=Inbox&sort=date&order=down&startMid=0&filterBy=&.rand=998378131&midIndex=6&mid=1_65614_ADVVv9EAASjCScrcbAxcZ25a7ns&m=1_77789_ADlVv9EAANRpSczmMgGV4AWM1c0%2C1_77014_ADZVv9EAAVCoScy3jAmFJzI3W0E%2C1_76322_ADlVv9EAAYMuScwwYQ1uK2RzSPc%2C1_72446_ADRVv9EAAXqFScvkJQumo1L%2BT8Q%2C1_68795_ADtVv9EAAK%2B2SctL8A5r0BTLrWU%2C1_65614_ADVVv9EAASjCScrcbAxcZ25a7ns%2C1_65036_ADtVv9EAAWrKScq9FAqrPXIhAUo%2C1_63744_ADlVv9EAAC7XScqJQwo%2FRhvca38%2C1_61051_ADlVv9EAAKUlScpZ6AEJdlHRiV8%2C1_57991_ADlVv9EAASBTScpHRgnHyWrVzAw%2C1_56661_ADtVv9EAAX5KScmXVAJ2wl3MxPg%2C&hash=ce8919dc17425d5a802866628419da62&.jsrand=8&needG=&enc=auto&fn=NAME-OF-ATTACHMENT.pdf&pid=2&cmd=msg.scan&ypa=1&mcrumb=lYU1M1iaNmM

and here's the link the downloads the attachment - this is the one that's not working.  http://us.f368.mail.yahoo.com/ya/download?clean=0&fid=Inbox&mid=1_65614_ADVVv9EAASjCScrcbAxcZ25a7ns&pid=2&tnef=&prefFilename=NAME-OF-ATTACHMENT.pdf

I don't think it's necessarily a browser-sniffing issue, since downloading works if I switch away from Yahoo's Classic Mail to their "new" mail.  Unfortunately, spoofing Safari doesn't "fix" the things that a broken in Yahoo's "new" mail under Camino, specifically the ability to insert contacts from the drop-down menu that's brought up by typing a few letters of the contacts name.
I've got a Yahoo account (set to Classic mail, and with an attachment, even!) and things download fine for me with both 1.6.7rc2 w/fresh profile and a recent nightly w/my normal profile.

I compared the "link that scans for viruses" and there are subtle differences (beyond filename-related stuff); however, the structure of the actual download URL is identical.

Since you saw that you're ending up on the Yahoo home page after trying to download the file, I wonder if maybe there's a cookie problem?

Can you download Troubleshoot Camino http://pimpmycamino.com/parts/troubleshoot-camino and use it to run Camino with a temporary fresh profile and see if downloading attachments works?
Thanks. It is a cookie problem.  If I have the preferences set for "accept all cookies" I can download.  If set to "accept cookies only from sites I visit" (which is my default setting), then I can't.  


A new profile solved the problem temporarily, not because my old profile was corrupt, but b/c the default setting on a new profile is to accept all cookies.  I realized that the problem couldn't be just a corrupt profile b/c I was having the problem on two computers.

Interestingly, Safari is set to accept cookies from the originating server only, yet I can download attachments on Safari.  If I edit the about:config in Firefox so that it's accepting cookies only from the originating server, then Firefox can't download attachments either.

I'll tell Yahoo, but the ppl who are responding to me are fairly clueless.
(In reply to comment #4)
> Thanks. It is a cookie problem.  If I have the preferences set for "accept all
> cookies" I can download.  If set to "accept cookies only from sites I visit"
> (which is my default setting), then I can't.  

How odd; I have that same setting as my default in my normal profile, too.  There must be some domain that needs to set a cookie that I have whitelisted ("Allow" or "Allow for Session" in the Cookies Exceptions List) that Yahoo Mail needs to access.  With a little trial-and-error with the fresh profile, it should be possible to figure out which one.

> Interestingly, Safari is set to accept cookies from the originating server
> only, yet I can download attachments on Safari.

Safari uses the same language to mean something almost entirely different; Safari will let third-party sites read cookies that someone else has set even while preventing those third-party sites from setting their own cookies (Safari does this in part because it has no whitelist feature like we do to allow for selective unblocking).  

(In case I need to find that explanation again, it's bug 417800 comment 8 and friends.)
Since it sounds like the verdict here is that this is just how their system works, and not something that would fall under TE, closing.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
I found the problem cookie.  Accept a few things from yahoo.com, then look in exceptions list for "www.yahoo.com" - right-click on that and select "expand exception to all of "yahoo.com" (I didn't know you could do that).  I can now leave "accept cookies only from sites I visit" checked and still download attachments.  Of course, it's real interesting to see what yahoo considers a site I visited.
Here's a workaround we discovered accidently.  Right-click on the attachment and select "open in new tab" from the contextual menu.  I don't know what that does to cookies, but somehow it preserves or adds the critical Yahoo cookie without having to fiddle with the cookie management preferences.
You need to log in before you can comment on or make changes to this bug.