Issue 11893 - configuration file not installed correctly using pkgchk
Summary: configuration file not installed correctly using pkgchk
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: 644
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 1.1 Beta2
Assignee: stephan.wunderlich
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 17:01 UTC by tomaisoc
Modified: 2003-05-20 11:38 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 tomaisoc 2003-02-27 17:01:30 UTC
I am not sure if this is a problem in pkgchk or the underlying configuration APIs
that it uses, but if I add the following ProtocolHandler.xcu file to a UNO package:

<?xml version="1.0" encoding="UTF-8"?>
<oor:node xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="ProtocolHandler"
oor:package="org.openoffice.Office">
 <node oor:name="HandlerSet">
  <node oor:name="com.sun.star.comp.ScriptProtocolHandler" oor:op="replace">
   <prop oor:name="Protocols">
    <value>script:*</value>
   </prop>
  </node>
 </node>
</oor:node>

and then install the package using pkgchk the file ends up in
<installdir>/user/uno_packages/cache/registry/data/org/openoffice/Office
but the line:

<prop oor:name="Protocols">

has changed to:

<prop oor:name="Protocols" oor:type="xs:string">
This causes the settings in the file to be ignored. The type value should not be
added.
Comment 1 kay.ramme 2003-02-27 17:17:06 UTC
Daniel, please take care of this.
Comment 2 Daniel Boelzle [:dbo] 2003-02-28 10:07:00 UTC
Joerg, this seems to be one for you.
Comment 3 joerg.barfurth 2003-02-28 16:48:12 UTC
JB: Workaround: Specify the correct property type on the <prop ...>
element. That should prevent any wrong one from appearing. The import
does not use the schema and so is missing the property type information.  

But I will attempt get rid of that artefact nevertheless.

Comment 4 joerg.barfurth 2003-04-15 14:23:33 UTC
Fixed in updatedata.cxx: Now a <VOID/> type is passed through.
Comment 5 joerg.barfurth 2003-04-16 15:43:12 UTC
Reassigning to tester: To be verified by QA
Comment 6 stephan.wunderlich 2003-04-17 10:15:34 UTC
Changed state
Comment 7 stephan.wunderlich 2003-04-17 10:16:49 UTC
works as expected in cws_configapi01 => verified
Comment 8 stephan.wunderlich 2003-05-20 11:38:28 UTC
SW: works as expected in OOo1.1beta2 => closed