Problem 'base path' and force 'update catalog from files'

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
OnkelTom
Posts: 21
Joined: Thu Jun 09, 2022 3:40 pm

Problem 'base path' and force 'update catalog from files'

Post by OnkelTom »

Dear Pierre, dear users, today I would like to seek assistance with the function 'base path of your pictures' in combination with the function 'update catalog from files' in the view-menu.

I started with a freshly unpacked v1.6.1, 64bit from portableapps (whereas the same happens within my installed version, which is a v1.6.2, 64bit). For the installed version, I removed (backed up) my databases (Thumbs.db and XnView.db) and even started with a fresh xnview.ini

I set a base bath for my pictures and start browsing, which works just fine and leads to the following view:
1.jpg
1.jpg (19.01 KiB) Viewed 2900 times
The xnview.db opened with e.g the SQLite-Database browser also looks as expected - fine:
2.jpg
2.jpg (17.09 KiB) Viewed 2900 times

As I often add/change/delete/amend the e.g. xmp-dc:subject, I need to update the files, already in the catalog.
I do this via the view-menu with 'update catalog from files'.
4.jpg
4.jpg (19.7 KiB) Viewed 2900 times
Now the problem - this leads to the following view of the catalog:
3.jpg
3.jpg (14.62 KiB) Viewed 2900 times
The database looks like this:
5.jpg
5.jpg (17.81 KiB) Viewed 2900 times
So it seems, that the 'forced update' does not respect/consider the set 'base path of your pictures'.
Is it a :bug: or am I missunderstanding anything or am I 'doing it wrong'

I appreciate any assistance / support / recommendation, how to deal with the above effect.

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

Re: Problem 'base path' and force 'update catalog from files'

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
OnkelTom
Posts: 21
Joined: Thu Jun 09, 2022 3:40 pm

Re: Problem 'base path' and force 'update catalog from files'

Post by OnkelTom »

Thank you for the feedback, Pierre!

Would also like to say THANK YOU for your efforts and the really superb piece of software and your efforts, maintaining it!
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problem 'base path' and force 'update catalog from files'

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.6.4. Please check and confirm the bug fix here.
Pierre.
User avatar
OnkelTom
Posts: 21
Joined: Thu Jun 09, 2022 3:40 pm

Re: Problem 'base path' and force 'update catalog from files'

Post by OnkelTom »

Dear Pierre, the bug seems to be fixed. I tested it with 4...5 folders, after adjusting the base path and altering the database.
Thank you!
User avatar
OnkelTom
Posts: 21
Joined: Thu Jun 09, 2022 3:40 pm

Re: Problem 'base path' and force 'update catalog from files'

Post by OnkelTom »

Dear Pierre, need to re-open this issue again and would like to request your support, once again, please.

After the incorporated changes from you, now I cannot export XMP data to files in the base-path.
It works well and as expected on different path's (other than basePath, e.g. "C:\")

Background / Pre-requisite:
I have my files on a NAS, under drive "X:\", e.g. "X:\2020\2020-01-01 (New Year)" or "X:\2021\2021-06-09 (Birthday Mum)" and so on. As previously explained, I use the built-in functions cmd_updateFiles and cmd_updateDB quite a lot, for which I have created individual buttons as well.

What I have done, after you made adjustments to the code:
  • Modify the XnView.db in the way, to replace all occurencies of "X:/" by "@" (with SQLite Database browser)
  • then modify XnView.ini paragraph basePath= from "/" to "X:/"
  • restart XnViewMP
What does not work:
The function cmd_updateDB does not write any XMP data (e.g. categories) to the file (e.g. xmp-dc:subject or xmp-lr:hierarchicalsubject)

Reversing the above steps, means returning to absolute paths in the database ("X:/" instead of "@") and reversing the basePath to "/" brings back the function cmd_updateFiles and I can write XMP data to the files on "X:\...\...\..." again.

Hope, I made myself clear and that you can find the failure.
If it is a failure or misunderstanding on my side, please let me have your advice.
As usual, I would like to say thanks for looking into this.

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

Re: Problem 'base path' and force 'update catalog from files'

Post by xnview »

OnkelTom wrote: Sun Feb 18, 2024 9:32 am cmd_updateFiles
What does not work:
The function cmd_updateDB does not write any XMP data (e.g. categories) to the file (e.g. xmp-dc:subject or xmp-lr:hierarchicalsubject)
you means cmd_updateFiles?
Pierre.
User avatar
OnkelTom
Posts: 21
Joined: Thu Jun 09, 2022 3:40 pm

Re: Problem 'base path' and force 'update catalog from files'

Post by OnkelTom »

Yes, of course. Used the wrong wording. Meant "cmdupdate_Files". My bad. Sorry.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problem 'base path' and force 'update catalog from files'

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problem 'base path' and force 'update catalog from files'

Post by xnview »

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