5.2.20
12/08/2019

[#285] RegistrationHandler does not have access to Error from registration result
Summary RegistrationHandler does not have access to Error from registration result
Queue gloox
Queue Version SVN
Type Enhancement
State Resolved
Priority 1. Low
Owners js (at) camaya (dot) net
Requester pulkomandy (at) pulkomandy (dot) tk
Created 09/29/2019 (70 days ago)
Due
Updated 12/08/2019 (today)
Assigned
Resolved 12/08/2019 (today)

History
12/08/2019 08:27:30 AM Jakob Schröter Comment #3 Reply to this comment
Correction: This will only be fixed/changed in trunk
12/08/2019 08:23:59 AM Jakob Schröter Comment #2
State ⇒ Resolved
Assigned to Jakob Schröter
Reply to this comment
Thanks for the report. This is now fixed in svn.
A hackish solution (duplicate function) will be in 1.0.23, a proper 
fix is in trunk.
09/29/2019 01:33:55 PM pulkomandy (at) pulkomandy (dot) tk Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ RegistrationHandler does not have access to Error from registration result
Queue ⇒ gloox
Reply to this comment
I'm adding in-band registration to my client and would like to display 
a descriptive error message to the user when a registration error 
happens. The server provides an error message in the Error tag, but 
this is not passed to the RegistrationHandler, so I can't use this 
text. As a result I have to guess myself what is wrong.
I would also like to access the error type, if it's "modify" I know I 
can highlight invalid fields and submit the form again, but if it's 
something else, I will probably suggest the user to try another server.