Bug 444265 - The plugin MediaWiki crashes by uploading an image
Summary: The plugin MediaWiki crashes by uploading an image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-MediaWiki (show other bugs)
Version: 7.6.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-23 11:38 UTC by Eckhard
Modified: 2022-05-26 10:44 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.7.0


Attachments
screenshot systeminformation (20.89 KB, image/png)
2021-10-23 11:38 UTC, Eckhard
Details
Loggin while trying the mediawikiuploader (1.25 KB, text/plain)
2022-02-06 10:57 UTC, Eckhard
Details
screenshot of the bug (243.58 KB, image/jpeg)
2022-02-06 11:00 UTC, Eckhard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eckhard 2021-10-23 11:38:57 UTC
Created attachment 142788 [details]
screenshot systeminformation

SUMMARY
Error when uploading an image to WikiMedia Commons:
" The "token-parameter" must be set."

STEPS TO REPRODUCE
1. Activate the export-Plugin mediawiki-export in digikam 7.3 or 7.2
2. write the username and passwort and login
3. Upload the picture

OBSERVED RESULT
The upload will start, but crashs with the error: The "token"-prameter must be set.
. 


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-11-03 12:35:25 UTC
Hi,

Can you run digiKam from a console with previously to define a debug env. variable as explained here :

https://www.digikam.org/contribute/

Thanks in advance

Gilles Caulier
Comment 2 Maik Qualmann 2021-12-13 13:37:35 UTC
*** Bug 446931 has been marked as a duplicate of this bug. ***
Comment 3 Maik Qualmann 2022-01-13 13:01:04 UTC
Gilles, do we have a login / access to WikiMedia to test and fix it?

Maik
Comment 4 caulier.gilles 2022-01-13 13:03:50 UTC
Maik,

On the test suite, there are plenty of unit-tests to check all mediawiki feature. If i remember a test run a dumy local server to verify communication.

But when i tested this plugin in the past, i always used my wikipedia account, just to be sure...

Gilles
Comment 5 Eckhard 2022-02-06 10:57:59 UTC
Created attachment 146336 [details]
Loggin while trying the mediawikiuploader

the result of the debugging while trying to upload an pic to mediawiki with the mediawikiuploader
Comment 6 Eckhard 2022-02-06 11:00:02 UTC
Created attachment 146338 [details]
screenshot of the bug
Comment 7 Rosenzweig 2022-03-22 18:59:59 UTC
This is just a guess: It might have something to do with old MediaWiki API parameters that were deprecated years ago and finally removed in October 2021. See https://www.mediawiki.org/wiki/MediaWiki_1.37/Deprecation_of_legacy_API_token_parameters
Comment 9 Maik Qualmann 2022-05-25 18:45:29 UTC
Git commit e6d18640f421a34a2942e13f2e681099156aa401 by Maik Qualmann.
Committed on 25/05/2022 at 18:44.
Pushed by mqualmann into branch 'qt5-maintenance'.

fix MediaWiki deprecated API calls
inprop=readable must be ported soon.
FIXED-IN: 7.7.0

M  +2    -1    NEWS
M  +1    -1    core/dplugins/generic/webservices/mediawiki/backend/mediawiki_edit.cpp
M  +5    -2    core/dplugins/generic/webservices/mediawiki/backend/mediawiki_queryinfo.cpp
M  +1    -1    core/dplugins/generic/webservices/mediawiki/backend/mediawiki_upload.cpp

https://invent.kde.org/graphics/digikam/commit/e6d18640f421a34a2942e13f2e681099156aa401
Comment 10 Maik Qualmann 2022-05-26 10:44:04 UTC
Git commit 1614ee28e73062854d0af740579d03555e7ff05c by Maik Qualmann.
Committed on 26/05/2022 at 10:43.
Pushed by mqualmann into branch 'qt5-maintenance'.

fix MediaWiki deprecated parameter inprop=readable

M  +9    -5    core/dplugins/generic/webservices/mediawiki/backend/mediawiki_queryinfo.cpp

https://invent.kde.org/graphics/digikam/commit/1614ee28e73062854d0af740579d03555e7ff05c