# HG changeset patch # User Kim Alvefur # Date 1616539270 -3600 # Node ID 183c2abdc3c4e29c468268cc51c87cb6609e8870 # Parent 60fe204b980f1bf1bbdd7eab2d44085b38b07435 mod_rest: Fix name of entry in error registry for unauth 'from' Wow was this a pain to track down or what? Symptoms: An error with condition: undefined-condition. No further details. diff -r 60fe204b980f -r 183c2abdc3c4 mod_rest/mod_rest.lua --- a/mod_rest/mod_rest.lua Tue Mar 23 23:19:38 2021 +0100 +++ b/mod_rest/mod_rest.lua Tue Mar 23 23:41:10 2021 +0100 @@ -207,7 +207,7 @@ name = { code = 422, condition = "unsupported-stanza-type", text = "Invalid stanza, must be 'message', 'presence' or 'iq'.", }, to = { code = 422, condition = "improper-addressing", text = "Invalid destination JID", }, from = { code = 422, condition = "invalid-from", text = "Invalid source JID", }, - post_auth = { code = 403, condition = "not-authorized", text = "Not authorized to send stanza with requested 'from'", }, + from_auth = { code = 403, condition = "not-authorized", text = "Not authorized to send stanza with requested 'from'", }, iq_type = { code = 422, condition = "invalid-xml", text = "'iq' stanza must be of type 'get' or 'set'", }, iq_tags = { code = 422, condition = "bad-format", text = "'iq' stanza must have exactly one child tag", }, mediatype = { code = 415, condition = "bad-format", text = "Unsupported media type" },