Page MenuHomePhabricator

Error trying to anonymously upload files in VisualEditor: UploadStashNotLoggedInException or apierror-missingparam-one-of
Open, Needs TriagePublic

Description

mediawiki-1.33.0 VisualEditor-REL1_33-8c9c37e.tar.gz

I can't upload images to wikimedia with visualeditor as anonymous.

I get
Quelque chose s'est mal passé

Un des paramètres filekey, file et url est obligatoire.
It's ok with normal upload

I want anonymous usder to be able to upload image with visualeditor

In /var/www/html/mediawiki/LocalSettings.php, I've add :
$wgGroupPermissions['*']['upload'] = true;

It works fine with Special:Upload page!

the first window is OK

but I get error after


or

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 24 2019, 2:29 PM
Aklapper changed the task status from Open to Stalled.Sep 24 2019, 4:32 PM

Hi @Christophedz, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

Unfortunately this report lacks some information. If you have time and can still reproduce the problem: Please add a more complete description to this report.
That should be a clear list of specific steps to reproduce the situation, as little details sometimes matter, so that nobody needs to guess how you performed each step, describing actual results and expected results after performing the steps to reproduce, providing a link to a public website where the issue can be seen, etc.

You can edit the task description by clicking Edit Task.

Ideally, exact and clear steps to reproduce should allow any other person to follow these steps (without having to interpret those steps) and see the same results. Problems that others can reliably reproduce can get fixed faster. Thanks!

Christophedz updated the task description. (Show Details)Sep 25 2019, 7:00 AM
Christophedz updated the task description. (Show Details)Sep 25 2019, 7:03 AM
Aklapper renamed this task from upload with visualeditor as anonymous to Error trying to anonymously upload files in VisualEditor: UploadStashNotLoggedInException or apierror-missingparam-one-of.Sep 25 2019, 9:27 AM
Aklapper changed the task status from Stalled to Open.
Aklapper added a project: VisualEditor.

I wasn't even aware that it's possible to configure MediaWiki to allow anonymous file uploads. I always thought it's like watchlist or preferences.

So apparently anons can upload files, but can't upload files to stash, which is required for the two-step process used in this dialog (to be able to fill in the details while the file is already uploading).

JTannerWMF moved this task from To Triage to Freezer on the VisualEditor board.Oct 10 2019, 4:25 PM
JTannerWMF added a subscriber: JTannerWMF.

This appears to be a problem in the underlying Mediawiki code and our team doesn't have the ability to fix this at this time.