You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/10/18 21:28:53 UTC

[jira] Created: (XMLBEANS-72) Document properties are lost

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-72

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-72
    Summary: Document properties are lost
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
 Components: 
             XmlObject
   Versions:
             Version 2 Beta 1

   Assignee: 
   Reporter: Rich Feit

    Created: Mon, 18 Oct 2004 12:28 PM
    Updated: Mon, 18 Oct 2004 12:28 PM
Environment: Windows

Description:
This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.

I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):

    java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
    javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
    java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro

Under v1.0.3 I get the following in output.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config/>

On the 10/12 build I get this:
    <?xml version="1.0" encoding="UTF-8"?>
    <struts-config/>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-72) Document properties are lost

Posted by xm...@xml.apache.org.
The following issue has been updated:

    Updater: Rich Feit (mailto:rfeit@bea.com)
       Date: Mon, 18 Oct 2004 12:29 PM
    Changes:
             Attachment changed to repro.java
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XMLBEANS-72?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-72

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-72
    Summary: Document properties are lost
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
 Components: 
             XmlObject
   Versions:
             Version 2 Beta 1

   Assignee: 
   Reporter: Rich Feit

    Created: Mon, 18 Oct 2004 12:28 PM
    Updated: Mon, 18 Oct 2004 12:29 PM
Environment: Windows

Description:
This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.

I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):

    java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
    javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
    java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro

Under v1.0.3 I get the following in output.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config/>

On the 10/12 build I get this:
    <?xml version="1.0" encoding="UTF-8"?>
    <struts-config/>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-72) Document properties are lost

Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-72?page=comments#action_56008 ]
     
Kevin Krouse commented on XMLBEANS-72:
--------------------------------------

oops, forgot the ! character.  Ok, now it should be fixed.

> Document properties are lost
> ----------------------------
>
>          Key: XMLBEANS-72
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-72
>      Project: XMLBeans
>         Type: Bug
>   Components: XmlObject
>     Versions: Version 2 Beta 1
>  Environment: Windows
>     Reporter: Rich Feit
>      Fix For: Version 2 Beta 1
>  Attachments: repro.java, struts-config_1_1.xsd
>
> This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.
> I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):
>     java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
>     javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
>     java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro
> Under v1.0.3 I get the following in output.xml:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>     <struts-config/>
> On the 10/12 build I get this:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <struts-config/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-72) Document properties are lost

Posted by xm...@xml.apache.org.
The following issue has been updated:

    Updater: Rich Feit (mailto:rfeit@bea.com)
       Date: Mon, 18 Oct 2004 12:29 PM
    Changes:
             Attachment changed to struts-config_1_1.xsd
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XMLBEANS-72?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-72

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-72
    Summary: Document properties are lost
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
 Components: 
             XmlObject
   Versions:
             Version 2 Beta 1

   Assignee: 
   Reporter: Rich Feit

    Created: Mon, 18 Oct 2004 12:28 PM
    Updated: Mon, 18 Oct 2004 12:29 PM
Environment: Windows

Description:
This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.

I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):

    java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
    javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
    java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro

Under v1.0.3 I get the following in output.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config/>

On the 10/12 build I get this:
    <?xml version="1.0" encoding="UTF-8"?>
    <struts-config/>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-72) Document properties are lost

Posted by "Rich Feit (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-72?page=comments#action_56011 ]
     
Rich Feit commented on XMLBEANS-72:
-----------------------------------

Works!  Thank you.

> Document properties are lost
> ----------------------------
>
>          Key: XMLBEANS-72
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-72
>      Project: XMLBeans
>         Type: Bug
>   Components: XmlObject
>     Versions: Version 2 Beta 1
>  Environment: Windows
>     Reporter: Rich Feit
>      Fix For: Version 2 Beta 1
>  Attachments: repro.java, struts-config_1_1.xsd
>
> This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.
> I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):
>     java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
>     javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
>     java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro
> Under v1.0.3 I get the following in output.xml:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>     <struts-config/>
> On the 10/12 build I get this:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <struts-config/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-72) Document properties are lost

Posted by "Rich Feit (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-72?page=comments#action_56007 ]
     
Rich Feit commented on XMLBEANS-72:
-----------------------------------

Almost.  I'm now getting this:

    <DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

when I should be getting this:

    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">


Just to be sure, this is my code:
        XmlDocumentProperties docProps = doc.documentProperties();
        docProps.setDoctypeName( "struts-config" );  // NOI18N
        docProps.setDoctypePublicId( "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" );
        docProps.setDoctypeSystemId( "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" );


> Document properties are lost
> ----------------------------
>
>          Key: XMLBEANS-72
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-72
>      Project: XMLBeans
>         Type: Bug
>   Components: XmlObject
>     Versions: Version 2 Beta 1
>  Environment: Windows
>     Reporter: Rich Feit
>      Fix For: Version 2 Beta 1
>  Attachments: repro.java, struts-config_1_1.xsd
>
> This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.
> I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):
>     java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
>     javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
>     java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro
> Under v1.0.3 I get the following in output.xml:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>     <struts-config/>
> On the 10/12 build I get this:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <struts-config/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Closed: (XMLBEANS-72) Document properties are lost

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-72?page=all ]
     
Jacob Danner closed XMLBEANS-72:
--------------------------------


This is fixed in V2 and an automated regression case has been created. Closing

> Document properties are lost
> ----------------------------
>
>          Key: XMLBEANS-72
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-72
>      Project: XMLBeans
>         Type: Bug
>   Components: XmlObject
>     Versions: Version 2 Beta 1
>  Environment: Windows
>     Reporter: Rich Feit
>      Fix For: Version 2 Beta 1
>  Attachments: repro.java, struts-config_1_1.xsd
>
> This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.
> I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):
>     java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
>     javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
>     java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro
> Under v1.0.3 I get the following in output.xml:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>     <struts-config/>
> On the 10/12 build I get this:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <struts-config/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-72) Document properties are lost

Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-72?page=history ]
     
Kevin Krouse resolved XMLBEANS-72:
----------------------------------

     Resolution: Fixed
    Fix Version: Version 2 Beta 1

should be fixed now.  Rich, can you test it out?

> Document properties are lost
> ----------------------------
>
>          Key: XMLBEANS-72
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-72
>      Project: XMLBeans
>         Type: Bug
>   Components: XmlObject
>     Versions: Version 2 Beta 1
>  Environment: Windows
>     Reporter: Rich Feit
>      Fix For: Version 2 Beta 1
>  Attachments: repro.java, struts-config_1_1.xsd
>
> This is happening on a build from 10/12.  Document properties added through XmlDocumentProperties appear to be ignored when the document is saved.
> I'm running the following commands under both v1.0.3 and the 10/12 build (repro.java and struts-config_1_1.xsd will be attached):
>     java -classpath %XMLBEANS_CLASSPATH% org.apache.xmlbeans.impl.tool.SchemaCompiler struts-config_1_1.xsd
>     javac -classpath xmltypes.jar;%XMLBEANS_CLASSPATH% repro.java
>     java -cp xmltypes.jar;%XMLBEANS_CLASSPATH%;. repro
> Under v1.0.3 I get the following in output.xml:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD     Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>     <struts-config/>
> On the 10/12 build I get this:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <struts-config/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org