jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
castor
  • castor
  • CASTOR-3035

XSD is outdated

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.1
  • Fix Version/s: 1.3.2
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

Similiar to CASTOR-2981 the XSD is also outdated at least w.r.t. field-handler element.

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. CASTOR-3040 XSD declaration causes elements to be marshalled into http://castor.exolab.org/ namespace

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Werner Guttmann added a comment - 19/Feb/11 4:05 AM

Jakub, I just figured that there was a small hickup during deployment of release 1.3.1. I just copied mapping.xsd and mapping.dtd manually to the correct folders, and everything should work now. Can you please re-check on your side ?

Show
Werner Guttmann added a comment - 19/Feb/11 4:05 AM Jakub, I just figured that there was a small hickup during deployment of release 1.3.1. I just copied mapping.xsd and mapping.dtd manually to the correct folders, and everything should work now. Can you please re-check on your side ?
Hide
Permalink
Jakub Bochenski added a comment - 23/Feb/11 4:01 AM

Validation with DTD says the document is valid now, but at the same time the current XSD schema makes the same document fail validation.

Show
Jakub Bochenski added a comment - 23/Feb/11 4:01 AM Validation with DTD says the document is valid now, but at the same time the current XSD schema makes the same document fail validation.
Hide
Permalink
Jakub Bochenski added a comment - 23/Feb/11 4:02 AM - edited

Sapmle, XSD fails at the "class" element

<mapping>

	<field-handler name="dateHandler"
		class="package.FormatDateHandler">
		<param name="date-format" value="yyyy-MM-dd" />
	</field-handler>

	<class name="package.Entries">
		<field name="revisionNo" type="long">
			<bind-xml node="attribute" />
		</field> 
	</class>

</mapping>
Show
Jakub Bochenski added a comment - 23/Feb/11 4:02 AM - edited Sapmle, XSD fails at the "class" element <mapping> <field-handler name= "dateHandler" class= " package .FormatDateHandler" > <param name= "date-format" value= "yyyy-MM-dd" /> </field-handler> <class name= " package .Entries" > <field name= "revisionNo" type= " long " > <bind-xml node= "attribute" /> </field> </class> </mapping>
Hide
Permalink
Werner Guttmann added a comment - 24/Feb/11 1:13 AM

Jakub, can you please attach the mapping file you are trying to validate against the XML schema ?

Show
Werner Guttmann added a comment - 24/Feb/11 1:13 AM Jakub, can you please attach the mapping file you are trying to validate against the XML schema ?
Hide
Permalink
Werner Guttmann added a comment - 24/Feb/11 1:19 AM

Oops, no need anymore to attach the XML schema anymore .. ;-(. I just found the problem.

Show
Werner Guttmann added a comment - 24/Feb/11 1:19 AM Oops, no need anymore to attach the XML schema anymore .. ;-(. I just found the problem.
Hide
Permalink
Werner Guttmann added a comment - 24/Feb/11 1:23 AM

Just uploaded the fixed XML schema and cross-checked. Now the field-handler is at the correct location (before the class element).

Show
Werner Guttmann added a comment - 24/Feb/11 1:23 AM Just uploaded the fixed XML schema and cross-checked. Now the field-handler is at the correct location (before the class element).

People

  • Assignee:
    Werner Guttmann
    Reporter:
    Jakub Bochenski
Vote (0)
Watch (0)

Dates

  • Created:
    03/Feb/11 8:01 AM
    Updated:
    22/Jul/11 4:34 PM
    Resolved:
    02/Mar/11 7:23 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.