Bug 510808 - In Export to Local Storage, if a Target Location does not exist, a confusing error message is shown
Summary: In Export to Local Storage, if a Target Location does not exist, a confusing ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-FileCopy (other bugs)
Version First Reported In: 8.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-20 03:55 UTC by rickey
Modified: 2025-12-25 10:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:


Attachments
Example expected result (18.12 KB, image/png)
2025-10-20 03:55 UTC, rickey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rickey 2025-10-20 03:55:30 UTC
Created attachment 185910 [details]
Example expected result

SUMMARY
When I try to use Export to Local Storage feature, I am able to manually type in a target location. If there are errors in that entry (such as a nonexistent destination), a very confusing error message is shown which does not lead me to realize the root cause. 

STEPS TO REPRODUCE
1.  Open Export to Local Storage
2.  Manually Type in a path for Target location, such as "C:\NewFolder"
3.  Click "Start Export"

OBSERVED RESULT
Error Window: “Some of the items have not been copied and are still in the list. You can retry to copy these items now.”

--> Discussion: This message asks the user to try again. But in this case, repeated clicking "Start Export" will simply result in this error window reappearing again, thus throws the user into confusion. 

EXPECTED RESULT
(a) A prompt asking if the user wishes to create the non-existent directory, OR
(b) A specific error message saying "Export failed - C:\NewFolder does not exist.", OR
(c) A message is shown to the user BEFORE they have clicked Start Export button (see attached mockup image)


SOFTWARE/OS VERSIONS
Windows: 11, 24H2

ADDITIONAL INFORMATION

The code in https://invent.kde.org/graphics/digikam/-/blob/master/core/dplugins/generic/webservices/filecopy/fcexportwindow.cpp#L235 seems to suggest that the window currently have no visibility as to the reason for incomplete exports, thus a generic error message is shown. 

Perhaps a function could be added in `slotTargetUrlChanged()` to check if the target exists? This way, a notice message could be shown unobtrusively to the user, as in the mockup?
Comment 1 Maik Qualmann 2025-10-20 06:29:52 UTC
Git commit df99d4be6bd85ae628543c7688b16c9d6d08a22e by Maik Qualmann.
Committed on 20/10/2025 at 06:28.
Pushed by mqualmann into branch 'master'.

add target folder check and ask for creation
FIXED-IN: 8.9.0

M  +1    -1    NEWS
M  +39   -0    core/dplugins/generic/webservices/filecopy/fcexportwindow.cpp

https://invent.kde.org/graphics/digikam/-/commit/df99d4be6bd85ae628543c7688b16c9d6d08a22e