1.11.2 - file operations - writing metadata to read-only files

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

User avatar
user0
XnThusiast
Posts: 2926
Joined: Sat May 09, 2015 9:37 am

1.11.2 - file operations - writing metadata to read-only files

Post by user0 »

XnViewMP 1.11.2
Windows11 (25H2), display resolution 3840x2160, dpi scale 150%


Browser/Viewer - file operations


To reproduce:
0. prerequisites
- have few read-only images files in folder, eg JPEG and PNG (formats into which app can embed metadata)
- default metadata auto-export settings (Export:Categories in Settings>Metadata)

issue A
1. select files in Browser
2. assign any Category (via Metadata>Set.. menu or Categories pane)
JPEG file - read-only flag will be ignored and file updated
PNG file - original file remains untouched, while a new file (name.png.tmp) will be created alongside it.
temp file will still be created even if no metadata needs to be written to read-only PNG

expected
do not write into read-only files and do not create any temp files
maybe
- add a setting to create backup if file is read-only (also versioning)
- add popup with options what to do [ignore or create backup] (similar to Lightroom)


issue B
1. select files in Browser
3. assign any Rating or Color label (via Metadata>Set.. menu or overlay icons)
3. press 'Update files from catalog'
issue A will fire
expected
do not write into read-only files
maybe force sidecars creation like with other unembeddable cases, per 'Supported formats' list (in Settings>Metadata>Sidecar)


issue C
1. check 'Create/update XMP sidecar' in Settings (Update master file unchecked)
2. select files in Browser
3. assign any Category (via Metadata>Set.. menu or Categories pane)
sidecars will be created - OK
issue A will also be triggered






Example
read-only files in Bridge and Lightroom
other_apps_read-only_files.png








Related
You do not have the required permissions to view the files attached to this post.