0.87: Renaming a folder with a non-ASCII character name corrupts the database

Moderators: cday, XnTriq, helmut, xnview, Dreamer

shokuzai
Posts: 17
Joined: Thu Jan 05, 2017 2:40 am

0.87: Renaming a folder with a non-ASCII character name corrupts the database

Postby shokuzai » Thu Oct 05, 2017 9:35 pm

XnView: MP 0.87 - 64 bit
OS: Windows 10 - 64bit

Effect: Corrupted database

Detail:
- The category assignments and the tags are removed from the files inside the folder.
- But those files are still shown when browsing through Categories Filter.
- In Setting -> Catalog -> Catalog -> Cached directory, two entries are created, for example:

D:\Pictures\漢字 (without backslash)
D:\Pictures\漢字\ (with backslash)
where 漢字 is the new name.

What are affected: folders whose names consist of non-ASCII characters, namely 漢字(Chinese characters) and かな(kana).

To reproduce:
Rename any of those folders to another such name inside XnView MP.

User avatar
xnview
Author of XnView
Posts: 28394
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.87: Renaming a folder with a non-ASCII character name corrupts the database

Postby xnview » Thu Oct 12, 2017 12:30 pm

:bugconfirmed: Thanks to your detailed description I can reproduce the problem. Even for ascii name!
Pierre.

User avatar
xnview
Author of XnView
Posts: 28394
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.87: Renaming a folder with a non-ASCII character name corrupts the database

Postby xnview » Fri Nov 03, 2017 1:05 pm

This problem is supposed to be fixed in XnView MP 0.88. Please check and confirm the bug fix here.
Pierre.

User avatar
miki
Posts: 15
Joined: Wed Oct 04, 2017 2:40 pm
Contact:

Re: 0.87: Renaming a folder with a non-ASCII character name corrupts the database

Postby miki » Mon Nov 13, 2017 5:03 pm

Hello, i'm using version 0.88 and just trying to learn how to work with the catalog and it seems this bug is still there.

When I rename a "middle" folder in the pictures path (e.g. /parent/folder/pics/x.jpg -> /parent/folder2/pics/x.jpg), all the categories are lost for the files in the folder pics. They are still visible in the Categories Filter, but as invalid-lost files.

So, renaming seems to work only when the last folder in the path is renamed (e.g. /pics/x.jpg -> /pics2/x.jpg)... renaming any middle folder in the path corrupts the catalog.

Btw, is there any option to rebuild the catalog manually when folders are renamed/moved in another file manager? I tried the Optimize button in the Settings-Catalog, but no luck.

EDIT: I found a temporary workaround. I create a brand new folder with the desired name, then move there all the subfolders from the old folder. But of course, this is a cumbersome workflow for just renaming a folder.
Miki Proxima (meshlogic)

User avatar
xnview
Author of XnView
Posts: 28394
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.87: Renaming a folder with a non-ASCII character name corrupts the database

Postby xnview » Tue Nov 14, 2017 11:52 am

miki wrote:When I rename a "middle" folder in the pictures path (e.g. /parent/folder/pics/x.jpg -> /parent/folder2/pics/x.jpg), all the categories are lost for the files in the folder pics. They are still visible in the Categories Filter, but as invalid-lost files.

So, renaming seems to work only when the last folder in the path is renamed (e.g. /pics/x.jpg -> /pics2/x.jpg)... renaming any middle folder in the path corrupts the catalog.

Right the previous fix was the problem, so here is the bug report
Pierre.

User avatar
miki
Posts: 15
Joined: Wed Oct 04, 2017 2:40 pm
Contact:

Re: 0.87: Renaming a folder with a non-ASCII character name corrupts the database

Postby miki » Tue Nov 14, 2017 1:01 pm

xnview wrote:Right the previous fix was the problem, so here is the bug report

Thank you very much for fixing this essential issue :) Is there a place to download the current beta/development version for testing?
Miki Proxima (meshlogic)


Return to “0.89 Testing – Retest”

Who is online

Users browsing this forum: No registered users and 1 guest