Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-195

org.apache.axiom.attachments.Attachments#getSOAPPartContentID() does not parse content ids correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.8
    • None
    • None

    Description

      When using org.apache.axiom.attachment.Attachments#getSOAPPartContentID(), if the content ID is in the form : "cid-12345@192.168.0.1" then the code that strips "cid:" prefixes also strips the "cid-" prefix.

      Attached is a patch containing a test case (stripped down and details obscured, so apologies if it doesn't precisely parse as a SOAP-with-attachments request) and the required fix (basically, look for all four characters, not just the first three).

      This patch is against the latest axiom I could find (1.2.5).

      Attachments

        1. axiom-cid-patch
          4 kB
          Michael Kaye
        2. axiom-cid-patch
          6 kB
          Michael Kaye

        Activity

          People

            veithen Andreas Veithen
            delph Michael Kaye
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: