0.61 Linux: dot in folder name -> saveas bug

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
dietmar
Posts: 114
Joined: Fri Oct 25, 2013 4:55 pm

0.61 Linux: dot in folder name -> saveas bug

Post by dietmar »

Saving a file under a new name does not work correctly if the path contains a dot.
Example: Given a path such as home/XYZ.fr/somepath/
From the browser open the image home/XYZ.fr/somepath/somefile.jpg
Save the image using SaveAs.
The folder dialog correctly defaults to home/XYZ.fr/somepath/ with the image name default to somefile.jpg
Name the new image newimage.jpg
XnView does not save the file to home/XYZ.fr/somepath/newimage.jpg
Instead it saves the file to home/XYZ.jpg
You need to parse the path from the end to find the delimiting dot, not from the start ;-)

Side effect: The browser loses the active folder during this operation.

Dietmar
dietmar
Posts: 114
Joined: Fri Oct 25, 2013 4:55 pm

Re: 0.69 Linux: dot in folder name -> saveas bug

Post by dietmar »

Pierre, thanks for 0.69!!!

This bug which I reported for 0.61 seems to have slipped through your notes. It's still in 0.69 - and it's annoying ;-)

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

Re: 0.69 Linux: dot in folder name -> saveas bug

Post by xnview »

do you have always the bug with lastest version?
Pierre.
dietmar
Posts: 114
Joined: Fri Oct 25, 2013 4:55 pm

Re: 0.69 Linux: dot in folder name -> saveas bug

Post by dietmar »

xnview wrote:do you have always the bug with lastest version?
Pierre, I just checked with Version 0.84 x64 (Jan 17 2017) running under Ubuntu and yes, the bug is still there: I open any image (png in this case), select save-as, select a folder with a dot in its name like ABC.DE, and the file is saved in that folder's parent directory under ABC.png.

Regards
Dietmar
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.61 Linux: dot in folder name -> saveas bug

Post by helmut »

Thank you for checking, dietmar.

@Pierre: Could you please try to reproduce the problem, again?
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.69 Linux: dot in folder name -> saveas bug

Post by xnview »

O.k., thank you, I can also reproduce the problem. Issue 1156 is fixed in next version.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.61 Linux: dot in folder name -> saveas bug

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.85 beta 1. Please check and confirm the bug fix here.
Pierre.
dietmar
Posts: 114
Joined: Fri Oct 25, 2013 4:55 pm

Re: 0.61 Linux: dot in folder name -> saveas bug

Post by dietmar »

xnview wrote:Please check and confirm the bug fix here.
Fix confirmed. Thanks!

Dietmar
Post Reply