[
https://issues.apache.org/jira/browse/AXIS2-6053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved AXIS2-6053.
------------------------------------
Resolution: Fixed
Enhanced SchemaValidationHandler to detect cvc-complex-type.3.2.2
validation errors and append a diagnostic hint explaining that the
likely cause may be an xs:attribute ref= referencing an attribute from
an external namespace whose schema was not imported or could not be
resolved. The hint advises ensuring the referenced schema is
accessible or defining the attribute inline.
Also improved SchemaFactoryErrorHandler to log schema compilation
warnings with full exception context at WARN level, making
unresolvable import warnings visible for diagnosis.
Commits:
- f5227f9 — Enhanced error messages + error handler logging + unit
tests
- 0e7464a — Integration test through full invoke() flow
- a003d3c — Clarified hint wording to indicate it is one possible
cause
> cvc-complex-type.3.2.2: Attribute 'contentType' is not allowed to appear in
> element ...
> ---------------------------------------------------------------------------------------
>
> Key: AXIS2-6053
> URL: https://issues.apache.org/jira/browse/AXIS2-6053
> Project: Axis2
> Issue Type: Improvement
> Affects Versions: 1.8.2
> Reporter: Ralf Hauser
> Priority: Major
> Fix For: 2.0.1
>
>
> when upgrading from 2.1.78 to 2.182 the following line from my xsd
> unexpectedly caused the problem
>
> <xs:attribute ref="xmime:contentType" use="required"/>
>
> where
> xmlns:xmime="http://www.w3.org/2005/05/xmlmime" version="1.0"
>
> Copying it over solved the problem.
>
> ==> But it would be way better if the "cvc-complex-type.3.2.2" error would
> give a hint that the "ref=" is no longer supported.
>
> [https://stackoverflow.com/questions/17422175/whats-the-difference-between-ref-and-type-in-an-xml-schema]
>
> https://stackoverflow.com/questions/1448888/what-does-the-ref-attribute-on-an-element-in-an-xsd-do
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]