Apache OpenOffice (AOO) Bugzilla – Issue 34105
Offer an API interface to query standard office paths
Last modified: 2013-02-24 21:07:34 UTC
This task is a follower of bug #i25951#: Wizards like the Report Wizards fail to run when certain templates that lie in a subfolder of share/template cannot be found after the user has modified the settings in Tools/options/Paths... The problem in the above mentioned bug was solved by delivering a messagebox that gives an explanation and a hint how to reset the default settings of the office. However this solution is considered suboptimal by user experience (and me, too). Better solutions would be: 1) Prevent the user from modifying the office paths that are not user defined. 2) offer an API interface to query the standard office paths. As the user defined office configuration wins over the share configuration the current API interfaces therfor only offer access to the user configuration, when this has been modified.. An API interface to query the standard office paths could be used as a fallback, when the user configuration is not correct in a special case.
Another important issue around this topic is, that currently there is no safe way to find out which paths are userdefined and which were set by the configuration. Right now you have to do something like parsing through the path string for a substring "/share" or or "/user". This is not really elegant...
Use css::util::PathSettings service. Resolving.
Sorry. this doesn't help. We need a more sophisticated path handling. So I reopen the issue, but IMHO it's an "Enhancement" issue.
Andreas, did we fix this problem with our new path settings? If not, could it be done?
AS->TV: With our new path handling we offer the possibility to differ between: - internal configured paths (configured by an admin or extended by an addon) - user configured paths (set in the Tools->Options->Paths dialog) - one writeable path (which must be used for write operations) Please adapt your wizard implementation so it uses these new feature and btw. fix this bug.
TV: accepted for 2.04
TV: Fixed all wizards in CWS pathsettings01. The method FileAccess.getOfficePaths now used the new PathSettings service. It supports a search String that can be used to determine the correct Path if there are more than one to choose from.
TV->BC: Please verify the fixes.
verified in cws pathoptions01
This Issue is 'Verified' and not updated in 1yr+, so Closing. A Closed Issue is a Happy Issue (TM). Regards, Andrew Cleaning-up and Closing old Issues as part of: ~ The Grand Bug Squash, pre v3 ~