https://bz.apache.org/ooo/show_bug.cgi?id=127421
Issue ID: 127421
Issue Type: DEFECT
Summary: Windows Libraries are seen as read-only files
Product: App Dev
Version: 4.1.3
Hardware: All
OS: Windows, all
Status: CONFIRMED
Severity: Normal
Priority: P5 (lowest)
Component: api
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Since Windows 7, Libraries are a feature that gives a consolidated view of
related files in one place. A Library provides a single aggregated view of
multiple folders and their contents.
Windows 7 has 4 default Libraries: Documents, Music, Pictures, Videos and a
Public folder. If you use GetAttr on these, it returns 17 instead of 16.
MsgBox GetAttr( ConvertToURL( Environ("PUBLIC") ))
MsgBox GetAttr( ConvertToURL( Environ("USERPROFILE") & "\Documents") ))
Other side effect with MailMerge service.
Unable to save into these folders directly, it occurs a "read-only file" error.
Read this thread to get a sample:
https://forum.openoffice.org/en/forum/viewtopic.php?f=45&t=88818
Source code in line 975:
https://github.com/apache/openoffice/blob/trunk/main/sw/source/ui/uno/unomailmerge.cxx
UCB_IsReadOnlyFileName function is used here:
https://github.com/apache/openoffice/blob/trunk/main/sw/source/core/unocore/swunohelper.cxx
I don't know how can I introduce a specific test for Windows Libraries.
C++ Dev team welcome :-)
--
You are receiving this mail because:
You are the assignee for the issue.