Summary: | Can't import network share with non-ascii character in path | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | wojciech.binek |
Component: | Setup-Database | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, metzpinguin |
Priority: | NOR | ||
Version: | 5.8.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/digikam/8490cd2b9c459b549753563274d8a7d630567395 | Version Fixed In: | 5.9.0 |
Attachments: | Collections window with path with non-ascii character. |
Description
wojciech.binek
2018-03-12 07:00:17 UTC
What's the expected no ascii cararacters used in your path to reproduce the problem ? Gilles Caulier I had problems with polish characters 'ó' and 'ę', but I think that others will be problematic too. I also noticed that when the characters are not in the base of the path the subpath is added correctly: 1. When I add "Z:/Zdjecia/_Wakacje - wspólne" - error 2. When I add "Z:/Zdjecia/" - no error and automatically adds subpath "_Wakacje - wspólne" 3. When I add "Z:/Zdjęcia/" (ę instead of e) - error Created attachment 111335 [details]
Collections window with path with non-ascii character.
The same path is set for local and network collection. For local it is ok, for network there is an error.
The cause is here. Why too toLocal8Bit()? I fix it tonight. QStringList CollectionManagerPrivate::networkShareMountPathsFromIdentifier(const AlbumRootLocation* location) { // using a QUrl because QUrl cannot handle duplicate query items QUrl url = QUrl::fromEncoded(location->identifier.toLocal8Bit()); if (url.scheme() != QLatin1String("networkshareid")) { return QStringList(); } return QUrlQuery(url).allQueryItemValues(QLatin1String("mountpath")); } Maik Git commit 8490cd2b9c459b549753563274d8a7d630567395 by Maik Qualmann. Committed on 12/03/2018 at 20:05. Pushed by mqualmann into branch 'master'. fix access to non-ascii character in the network share path Related: bug 380220 FIXED-IN: 5.9.0 M +3 -1 NEWS M +1 -1 libs/database/collection/collectionmanager.cpp https://commits.kde.org/digikam/8490cd2b9c459b549753563274d8a7d630567395 The 5.9.0 pre-release installer is updated with last fix from Maik. Please try and report : https://files.kde.org/digikam/ I tested the new version on couple of folders and it seems ok now. Thanks! |