Bug 379713 - Error reporting is inadequate to diagnose problems
Summary: Error reporting is inadequate to diagnose problems
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Piwigo (show other bugs)
Version: 4.12.0
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-11 06:50 UTC by Gareth
Modified: 2019-07-27 11:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gareth 2017-05-11 06:50:26 UTC
When an upload fails, the error reporting is such that you are told the upload failed, but not why. In my case, it was because the user I was uploading as was not an administrator and thus though had permission to see albums, could not alter them.

Separately, when attempting to secure the pwigio site behind a layer of basic authentication (in addition to the piwigo user login requirement), the piwigo plugin was unable to successfully authenticate and I was unable to diagnose the reason for this.
Comment 1 Frédéric COIFFIER 2017-05-12 14:07:16 UTC
I agree the message doesn't help to diagnose the problem.
That's why I advice to use kdebugdialog5 to get advanced debug log in a console.
Comment 2 caulier.gilles 2018-01-31 19:42:17 UTC
Can you reproduce the problem with current digiKam 5.9.0 pre release Linux AppImage bundle ?

https://files.kde.org/digikam/
Comment 3 Gareth 2018-02-03 08:29:58 UTC
I've added the version of digikam that this error was noted in. Sorry for not providing this before.
Comment 4 caulier.gilles 2018-02-03 08:47:37 UTC
Ok, thanks. But can you try to reproduce the problem with a recent version published to see if this file still valid ? Thanks in advance

Gilles Caulier
Comment 5 Gareth 2018-02-03 08:52:29 UTC
Having tested upload using the new version as requested, the piwigo server is connected to correctly and the upload works without error.

If the server sits behind a layer of client ssl certificate authentication (with a server SSL certificate for a different site), the connection fails with SSL handshake error. There appears to be no way to add client SSL certificates for use in this scenario.

If the server sits behind a layer of http basic authentication (with a server SSL certificate for a different site), the connection fails with SSL handshake error.

There appears to be no way to relax the SSL handshake to be more flexible and allow use of an incorrect (but valid) certificate. I note that this is an edge case and beyond what would be expected by most users (but something I have supported in my android app for piwigo.

When I have a few minutes more I will generate a certificate that is valid for the test uri of my server rather than borrow another and re-run the above tests.

You seem to be unable to create a new piwigo album through the interface in digikam but this is a missing feature and unrelated to my original bug.

Thanks for fixing it.
Comment 6 Gareth 2018-02-03 09:00:43 UTC
With a correct SSL certificate,

If trying to connect to server with basic authentication, you get an error:

Failed to login into remote piwigo. Host requires authentication
Do you want to check your settings and try again?

- No way to add basic authentication credentials.

If trying to connect to server with client ssl certificate authentication, you get an error:

Failed to login into remote piwigo. Host requires authentication
Do you want to check your settings and try again?

- No way to add client SSL certificates
Comment 7 caulier.gilles 2019-07-27 11:55:26 UTC
Please test with 6.2.0 pre-release bundles available here :

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier