To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=100518
                 Issue #|100518
                 Summary|Do not complain about missing direcotries with templat
                        |es
               Component|framework
                 Version|OOO310m6
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|pmladek





------- Additional comments from pmla...@openoffice.org Tue Mar 24 13:51:48 
+0000 2009 -------
OOo-3.1 started to complain about missing directories with templates.

Steps to reproduce:
===================

1. Add a non-existing directory to the list of template directories, for 
   example see
  
http://svn.gnome.org/svn/ooo-build/trunk/patches/dev300/office-cfg-common-template-dir.diff
2. start soffice
3. Select File/New/Templates and Documents

Result:
=======

    OOo shows many dialogs about missing directories, for example:

    "Error creating a new document"
    "/usr/share/templates/ooo/en-US does not exist."
    
Expected results:
=================

    It should quietly ignore the currently missing directories.

Motivation (background):
========================

We have configured some more default directories with templates:

     file:///usr/share/templates/ooo/common
     file:///usr/share/templates/ooo/$(vlang)
     file:///usr/share/templates/ooo2/common
     file:///usr/share/templates/ooo2/$(vlang)

They allow us to put the templates into architecture and OOo-version independent
packages. The "ooo2" paths are there just for backward compatibility.

The lang-specific directories are installed only by the corresponding packages.
We do not want to create them by default. The error messages are a bit annoying 
;-)


Observation:
============

OOo-3.0 did not print such messages. I feel that the change has happened with a
very recent ooo310 milestone.

I'll attach a patch that solved the problem for me but it is a kind of 
workaround.

I think that there might be a problem deeper in the code. The error message says
""Error creating a new document". I think that the code should not try to create
a document when bWriteableDirectory = sal_False.

The error message is printed inside

    xResultSet = aContent.createCursor( aProps, eInclude );

in SfxDocTplService_Impl::addFsysGroup. This method does not longer have the
information about bWriteableDirectory. 

I am sorry, I was unable to find the change that caused this new behavior in a
reasonable time frame, so I provide only the temporary solution. Is the new
behavior bug or feature?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to