Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-973

SimpleXsdSchema not thread safe.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      Hi guys,

      We are using spring-ws and discovered an issue in SimpleXsdSchema.

      SimpleXsdSchema has a reference to an instance of org.w3c.dom.Element which is not thread safe. This cause issues when multiple clients are requesting the schema file simultaneously. The end result is empty attributes which causes ws clients to fail validating the schema.

      I've pushed an example of the issue here.

      For now, my workaround is to override SimpleXsdSchema with a version using a ThreadLocal for the element.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            robql Robert Lönnqvist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: