Issue 119086 - Write-protected document cannot be modified by API
Summary: Write-protected document cannot be modified by API
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-18 08:49 UTC by bmarcelly
Modified: 2013-02-24 21:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2012-03-18 08:49:44 UTC
Since OpenOffice.org version 3.3 it is possible to have a password protecting a Calc or Writer document from modifications. Such document can be read, not modified.
See http://www.openoffice.org/dev_docs/features/3.3/#Increased_Document_Protection_in_Writer_and_Calc

The API aspect has been forgotten in the development. The consequence is that such documents cannot be created or modified by program.

It should be possible, by API :
- to create a document and save it with a password for write-protection
- to open a write-protected document, modify it if the password is provided, and save it keeping the write-protection.