https://bugs.documentfoundation.org/show_bug.cgi?id=161876

            Bug ID: 161876
           Summary: Readonly attribute of target file is ignored on "save
                    as" in an other format.
           Product: LibreOffice
           Version: 6.3.6.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: upd...@mrc-heidelberg.de

Description:
Libreoffice ignores the readonly attributes when in "save as" an other format
is selected and the target file is readonly.

Steps to Reproduce:
1.two files: one ods and one xlsx file, both readonly on the filesystem
2.open ods file -> loaded as readonly
3.save as xlsx file
4.answer ok to overwrite existing file
5.file is overwritten, but should not.

Actual Results:
The readonly xlxs file is overwritten. In deed it is readonly again after the
overwrite.

Expected Results:
The file should not be overwritten. An error should be shown and the readonly
bits should be respected.


Reproducible: Always


User Profile Reset: No

Additional Info:
During overwrite I see a tmp file is created. The readonly attribute maybe is
circumvented by deleting and renaming files.

With lo 3.6.7.2 the readonly state is correctly respected.
7.4.7.2 shows the same error.

Maybe related:
With 3.6.7.2 it is also possible to open a readonly file, set the file to
readwrite in the system and then save the file.
With newer versions this is not possible any more, as the changed attributes
seams not updated before saving. So I have to close the file and open again
after changing the file attributes.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to