Last modified: 2014-07-10 12:41:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68467, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66467 - Upload broken after upgrade to 1.23
Upload broken after upgrade to 1.23
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.23.0
All All
: Unprioritized normal (vote)
: 1.23.x release
Assigned To: Nobody - You can work on this!
:
: 66349 67744 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 10:19 UTC by Florian
Modified: 2014-07-10 12:41 UTC (History)
14 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Backtrace of error (1.43 KB, text/plain)
2014-06-14 22:45 UTC, Florian
Details

Description Florian 2014-06-11 10:19:17 UTC
In Support Desk (https://www.mediawiki.org/wiki/Project:Support_desk) we have at least 3 reports of broken upload functionallity after upgrading to MW 1.23.

Two with error message, that popen is disabled (introduced line 702 in FSFileBackend in REL1_23 https://github.com/wikimedia/mediawiki-core/blob/REL1_23/includes/filebackend/FSFileBackend.php#L702 ):
https://www.mediawiki.org/wiki/Project:Support_desk#Upload_system_differences_between_1.22.7_and_1.23.0_43943
https://www.mediawiki.org/wiki/Project:Support_desk#Cannot_upload_files_since_the_update_from_1.22.7_to_1.23._43983

And this one:
https://www.mediawiki.org/wiki/Project:Support_desk#image.2Ffile_upload_broken_after_upgrade_from_MW_1.19_to_MW_1.23_43912

The users can not activate popen, because they are on a shared host. Maybe another solution or an notice in changelog, that popen must be enabled for this and future relases.
Comment 1 Andre Klapper 2014-06-11 10:41:16 UTC
Also see bug 66349 about proc_open() and thumbnail generation.

safe_mode was mentioned on support desk already, but I'd be more interested in getting to know if those functions are listed in "disable_functions" in php.ini.
Comment 2 Andre Klapper 2014-06-13 09:39:46 UTC
From my current interpretation of things, this ticket will become WONTFIX / INVALID.
Comment 3 Florian 2014-06-13 09:45:46 UTC
@Andre: totally Agree!
Comment 4 Mark A. Hershberger 2014-06-14 21:05:42 UTC
Someone tracked this issue down to something introduced in 1.23wmf12.

https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Cannot_upload_files_since_the_update_from_1.22.7_to_1.23./reply_%2836%29
Comment 5 Florian 2014-06-14 22:45:04 UTC
Created attachment 15655 [details]
Backtrace of error
Comment 6 nuess0r 2014-06-16 20:34:25 UTC
I'm one of this users who has problems with uploads after the upgrade (http://www.mediawiki.org/w/index.php?title=Project:Support_desk&offset=20140613133023&limit=20#image.2Ffile_upload_broken_after_upgrade_from_MW_1.19_to_MW_1.23_43912)

We are running our own servers. So I can help you with debugging and testing out new code.

As I wrote in the support desk question, my Apache2 is running with mod_chroot enabled and everything is working fine besides the upload (and I can't find any error or warnings in the logs or the debug output.)
Comment 7 Gerrit Notification Bot 2014-06-18 15:32:23 UTC
Change 140383 had a related patch set uploaded by Florianschmidtwelzow:
Fix for FileOpBatch.php

https://gerrit.wikimedia.org/r/140383
Comment 8 Gerrit Notification Bot 2014-06-18 15:47:47 UTC
Change 140383 had a related patch set uploaded by Paladox:
Fix for FileOpBatch.php

https://gerrit.wikimedia.org/r/140383
Comment 9 Aaron Schulz 2014-06-18 17:02:35 UTC
popen() would only be used with 'parallelize' set to 'implicit' or 'explicit'. The default is 'off'. Did you change the config from defaults?
Comment 10 Aaron Schulz 2014-06-18 17:07:11 UTC
(In reply to Aaron Schulz from comment #9)
> popen() would only be used with 'parallelize' set to 'implicit' or
> 'explicit'. The default is 'off'. Did you change the config from defaults?

Ah nevermind, I think I see what's going on here.
Comment 11 Gerrit Notification Bot 2014-06-18 17:18:57 UTC
Change 140406 had a related patch set uploaded by Aaron Schulz:
Avoid using popen() when "parallelize" is disabled

https://gerrit.wikimedia.org/r/140406
Comment 12 Gerrit Notification Bot 2014-06-18 17:48:31 UTC
Change 140416 had a related patch set uploaded by Aaron Schulz:
Avoid using popen() when "parallelize" is disabled

https://gerrit.wikimedia.org/r/140416
Comment 13 Gerrit Notification Bot 2014-06-18 20:11:34 UTC
Change 140416 had a related patch set uploaded by Krinkle:
Avoid using popen() when "parallelize" is disabled

https://gerrit.wikimedia.org/r/140416
Comment 14 Gerrit Notification Bot 2014-06-18 20:12:07 UTC
Change 140406 had a related patch set uploaded by Krinkle:
filebackend: Avoid using popen() when "parallelize" is disabled

https://gerrit.wikimedia.org/r/140406
Comment 15 Gerrit Notification Bot 2014-06-19 17:56:09 UTC
Change 140406 merged by jenkins-bot:
filebackend: Avoid using popen() when "parallelize" is disabled

https://gerrit.wikimedia.org/r/140406
Comment 16 Gerrit Notification Bot 2014-06-19 17:57:33 UTC
Change 140416 merged by jenkins-bot:
filebackend: Avoid using popen() when "parallelize" is disabled

https://gerrit.wikimedia.org/r/140416
Comment 17 Gerrit Notification Bot 2014-06-19 23:54:43 UTC
Change 140383 abandoned by Aaron Schulz:
Fix for FileOpBatch.php

Reason:
The required part of this was merged into core and REL1_23. Thanks.

https://gerrit.wikimedia.org/r/140383
Comment 18 nuess0r 2014-06-21 10:00:29 UTC
I applied this patch now to my installation. Fileupload seems to work now.
Comment 19 Andre Klapper 2014-06-23 13:31:22 UTC
All patches merged (or abandoned) hence assuming this is FIXED.
Thanks everybody for helping tracking this down.
Comment 20 Andre Klapper 2014-06-23 13:31:50 UTC
*** Bug 66349 has been marked as a duplicate of this bug. ***
Comment 21 Andre Klapper 2014-07-09 21:46:44 UTC
*** Bug 67744 has been marked as a duplicate of this bug. ***
Comment 22 Daniel Pazos 2014-07-09 23:28:54 UTC
I can't understand how I can use a PATCH_TO_REVIEW for solve the problem of proc_open()
Comment 23 Andre Klapper 2014-07-10 12:39:30 UTC
*** Bug 67744 has been marked as a duplicate of this bug. ***
Comment 24 Andre Klapper 2014-07-10 12:41:04 UTC
The last comment does not make any sense, and I have already explained in bug 67744 how to find the patch / code fix for this problem.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links