Page MenuHomePhabricator

Uploading .ogg file generates corrupted error message (Mac IE)
Closed, ResolvedPublic

Description

Author: dave.wu

Description:
It was suggested that I post here from Wikipedia's technical village pump. When attempting to upload an
.ogg file on Wikipedia English, I receive the following message: "The file is corrupt or has an incorrect
extension. Please check the file and upload again." I can play the OGG file without any problem using
Mint Audio and the extension is correct.

I recorded the file using Audacity 1.0.0.1 and exported as a WAV file. It was converted to an AIF file using
Ultra Recorder 2.4.2. Finally, it was converted to an OGG file using Ogg Drop 1.0b2.

I am running Mac System 9.0 on a Powerbook G3. I realize that the setup is fairly archaic, and I have a
suspicion that the somewhat antiquated software used to generate the final product is causing
MediaWiki to flag the file as hazardous.


Version: 1.5.x
Severity: minor
OS: Mac System 9.x
Platform: Macintosh
URL: http://en.wikipedia.org/wiki/Special:Upload

Details

Reference
bz3076

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:47 PM
bzimport set Reference to bz3076.

Can you attach the file here, or upload it elsewhere, to test with?

dave.wu wrote:

I'm trying to find a place, but it's proving problematic. The filesize is around
10MB, well over the limit for posting here.

dave.wu wrote:

I've cropped off about the first quarter of the AUP file and reprocessed it into an OGG file. It's still being flagged by
MediaWiki as corrupt. I've finally found a place to upload the file but the interface is sketchy. I apologize for the
inconvenience. To download it for inspection:

  1. Go to www.punchwebgroups.com
  2. Login with username: D. Wu, password: punchgroups
  3. Click on "ogg upload" in the directory listing on the left hand side
  4. Click on "Attack on Pearl Harbor.ogg" in the directory listing on the left hand side
  5. Click on "Download This" and follow further instructions

Internet Explorer for Mac apparently encodes file uploads as MacBinary for
types it doesn't recognize (GIF, PNG, and JPEG images seem to go through
without encoding).

At a minimum I can set it up to recognize this and show a more descriptive
error; might be able to extract the data as well, though.

This affects IE 5.2 on Mac OS X as well as Classic.

Fix checked into HEAD:

http://cvs.defau.lt/cvsweb.cgi/phase3/includes/SpecialUpload.php.diff?
r1=1.75&r2=1.76
http://cvs.defau.lt/cvsweb.cgi/~checkout~/phase3/includes/MacBinary.php?
rev=1.1&content-type=text/plain

Maybe want to poke at it a bit before committing to REL1_5 for the live site,
but it seems to work with IE 5.2.3 on Mac OS X 10.4.2 and IE 5.0 running under
Classic.

Note: uploading with Mozilla or Netscape should also work fine, as they don't
seem to do the extra MacBinary encoding.

Wikipedia is now running on the version with this fix, so it should be working. Please
reopen if problems continue.