Change timestamp & long path

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Change timestamp & long path

Post by metal450 »

Looks like this bug is also there for "Change Timestamp." If you try to Change Timestamp on a file that has a long path, it will silently fail (no error shown to user, no change made to the file). If you move the file somewhere else (shorter), it will suddenly work.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

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

Re: Change timestamp & long path

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.4. Please check and confirm the bug fix here.
Pierre.
metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Re: Change timestamp & long path

Post by metal450 »

No change. Still not working for me in 1.4.4.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

how do you reproduce?
Pierre.
metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Re: Change timestamp & long path

Post by metal450 »

*Open a jpeg with a long path (i.e. any of the examples previously given)
*Switch interface to Browse mode
*Tools->Change Timestamp
*Dialog settings like this: https://jiij.cc/snaps/2023-04-22_08.38.07.png
*Click "Write"
*The Date Taken does not shift by 1hr

If you move the same image to a shorter path & try the same process, it will shift properly.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

i can't view the screenshot...
Pierre.
metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Re: Change timestamp & long path

Post by metal450 »

Sorry about that, the server I use for hosting images crashed just this weekend. Here's a mirror: https://imgur.com/a/eEfwNgk
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

I can reproduce, issue reopened. But if you use 'Create EXIF metadata', exiftool will be use and will failed to use this long path.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.5. Please check and confirm the bug fix here.
Pierre.
metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Re: Change timestamp & long path

Post by metal450 »

Nope. Same behavior.
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

do you use 'Create EXIF metadata'?
Pierre.
metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Re: Change timestamp & long path

Post by metal450 »

Not explicitly. What I'm doing is exactly as documented in the previous post, this one: viewtopic.php?p=186987&sid=b7a83e1f105f ... a0#p186987
User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Change timestamp & long path

Post by xnview »

metal450 wrote: Tue May 23, 2023 4:20 pm Not explicitly. What I'm doing is exactly as documented in the previous post, this one: viewtopic.php?p=186987&sid=b7a83e1f105f ... a0#p186987
In the screenshot, 'Create EXIF metadata' is checked. Exiftool is used in this case but doesn't support long path name
Pierre.
metal450
Posts: 140
Joined: Sun Apr 28, 2019 6:01 am

Re: Change timestamp & long path

Post by metal450 »

Whether I leave that checked or unchecked, the behavior is the same - the exif timestamp doesn't get updated. Here's a video showing it with that checkbox unchecked: https://jiij.cc/snaps/2023-05-25_16.35.05.mp4

(Also, in all cases - with or without the checkbox - if it fails there should be a warning message, rather than silently failing. Imagine you have a bunch of photos selected, some with shorter names and some with longer ones, and you try to change timestamps. You'll be left with a state where some of them were updated and some weren't, and you'd have no indication that something went wrong).