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

SimpleNamespaceContext.removeBinding() does not clean up all references

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.9, 2.1.2
    • Fix Version/s: 2.1.3
    • Component/s: XML
    • Labels:
      None
    • Environment:
      n/a

      Description

      In SimpleNamespaceContext.removeBinding() the first line should be changed to

      String namespaceUri = prefixToNamespaceUri.remove(prefix);

      Otherwise the internal map prefixToNamespaceUri still contains the prefix, and hasBinding(String prefix) behaves incorrectly.

      This is error is critical, as under certain circumstances XML schema validation fails. If necessary I can provide an example.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        16h 6m 1 Arjen Poutsma 07/Dec/12 2:28 AM
        In Progress In Progress Resolved Resolved
        10m 44s 1 Arjen Poutsma 07/Dec/12 2:39 AM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            tthomas Timo Thomas
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h Original Estimate - 1h
              1h
              Remaining:
              Time Spent - 10m Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - 10m Remaining Estimate - 1h
              10m