Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1 - Concurrency
-
Component/s: None
-
Labels:None
-
Acceptance Test - Add?:No
Description
http://www.igniterealtime.org/community/thread/38340
I wrote a patch for the PacketError class to add support for application-specific error conditions. It would be great if it gets into the trunk of Openfire or start a discussion about that topic.
Best Regards
Guenther Niess
Hey Guenther, I've been looking at that patch. I think one thing could be improved: The behavior of the methods you added is a bit off, if a user attempts to insert an application-specific error, using the namespace urn:ietf:params:xml:ns:xmpp-stanzas. According to http://xmpp.org/rfcs/rfc3920.html#stanzas-error-app, this is illegal. We should implement that restriction.
Additionally, could you please provide junit tests that verify the correct behavior of your methods, both for valid as invalid input params?