Uploaded image for project: 'Smack'
  1. Smack
  2. SMACK-692

Support error IQs with error and optional original child element

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.5.0
    • Component/s: Core
    • Labels:
    • Expected Effort:
      Medium

      Description

      According to RFC 6120 8.2.3 7

      An IQ stanza of type "error" MAY include the child element contained in the associated "get" or "set" and MUST include an <error/> child; for details,

      Smack currently supports error IQs containing only the error child.

      • Change IQ.getChildElementXML to possible return both elements (error and original)
      • Add IQ.createErrorResponse(IQ request, XMPPError error, boolean includeOriginal)
      • Add unit tests for this functionality

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            flow Florian Schmaus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: