Last modified: 2011-08-30 18:32:10 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 T32620, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30620 - UploadCampaigns -- setting a new default license
UploadCampaigns -- setting a new default license
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-29 18:46 UTC by Neil Kandalgaonkar
Modified: 2011-08-30 18:32 UTC (History)
3 users (show)

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


Attachments

Description Neil Kandalgaonkar 2011-08-29 18:46:18 UTC
There seem to be a few problems with the Upload Campaign licenses:

1 - If you choose a license as "default" but it isn't in the set of non-default licenses, then the submit button appears not to work.

The reason why is that the default choice is implemented by selecting (behind the scenes) the option in the list of non-default choices. So, if you do this:

    Default license: A       
    Non-default licenses: B, C, D

It doesn't work. If you switch the view to the non-default licenses, then you'll see the red error message asking you to please select one.

But if you do this:

    Default license: A       
    Non-default licenses: A, B, C, D

It should work.

There is some attempt at dealing with this situation in the code but it would be better if it was just impossible for this to happen.


2 - For reasons I don't undertand, when we deployed it live, I couldn't make a campaign change the default license to anything but CC-BY-SA-3.0. The campaign config is stored correctly; something else is interfering. This triggers the bug described above. 

I did not see this behavior on testwiki. This is CRUCIAL to fix for WikiLovesMonuments.


3 - If the user tries to upload multiple files, they do have the option of giving them different licenses. In this situation, there is a license widget for every upload. The preference of which licenses to show (own work, not own work, or both) does not seem to carry through here.
Comment 1 Neil Kandalgaonkar 2011-08-29 20:01:50 UTC
This is the config in the deployment equivalent of LocalSettings. I don't think the stickiness of the CC-BY-SA-3.0 license is related, but just in case:



       if ( $wmgUseUploadWizard ) {
                require_once( "$IP/extensions/UploadWizard/UploadWizard.php" );
                $wgUploadStashScalerBaseUrl = "$urlprotocol//upload.wikimedia.org/$site/$lang/thumb/temp";
                $wgUploadWizardConfig = array(
                        # 'debug' => true,
                        'disableResourceLoader' => false,
                        'autoCategory' => 'Uploaded with UploadWizard',
                        // If Special:UploadWizard again experiences unexplained slowness loading JavaScript (spinner on intial load spinning forever)
                        // set fallbackToAltUploadForm to true.
                        'fallbackToAltUploadForm' => false, # Set by neilk, 2011-05-17
                        'altUploadForm' => 'Special:Upload', # Set by demon, 2011-05-10 per neilk
                );
                if ( $wgDBname == 'testwiki' ) {
                        $wgUploadWizardConfig['feedbackPage'] = 'Prototype_upload_wizard_feedback';
                        $wgUploadWizardConfig['altUploadForm'] = 'Special:Upload';
                        $wgUploadWizardConfig["missingCategoriesWikiText"] = '<p><span class="errorbox"><b>Hey, no categories?</b></span></p>';
                        unset( $wgUploadWizardConfig['fallbackToAltUploadForm'] );
                } else if ( $wgDBname == 'commonswiki' ) {
                        $wgUploadWizardConfig['feedbackPage'] = 'Commons:Prototype_upload_wizard_feedback';
                        $wgUploadWizardConfig['altUploadForm'] = 'Commons:Upload';
                        $wgUploadWizardConfig["missingCategoriesWikiText"] = "{{subst:unc}}";
                }
        }
Comment 2 Jeroen De Dauw 2011-08-29 23:30:57 UTC
Point 2 fixed by r95726. At least the campaign related part. The auto selection of the license is still failing often, as there are a whole bunch of licenses which have a template associated with them different then their name, which the JS for some reason requires. I'll also take a look at that I guess.
Comment 3 Jeroen De Dauw 2011-08-29 23:37:01 UTC
Point 1 (which I meant to refer to in my previous comment, not point 2) fully fixed by r95727; that was easy :)

I cannot reproduce point 2 locally, will look into it further tomorrow.
Comment 4 Jeroen De Dauw 2011-08-30 17:12:31 UTC
Point 3 fixed by r95793.
Comment 5 Jeroen De Dauw 2011-08-30 18:32:10 UTC
I cannot reproduce point 2 on my local wiki, on commons prototype or commons itself, and no one complained about it not working, which would have happened if it was broken on commons, so I'm guessing this issue is invalid.

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


Navigation
Links