Ejabberd mod_http_upload error 405 not allowed

I cannot get mod_http_upload to work as I keep getting error 405 Not Allowed when I perform Service Discovery. Below is my configuration:

Access:
   local:
     all: allow

listen:
     port: 5443
     module: ejabberd_http
     tls: false
     request_handlers:
        "upload": mod_http_upload

Modules:
mod_http_upload:
    #host: "upload.@HOST@"
    access: local
    thumbnail: false
    docroot: "/home/xmpp/upload"
    put_url: "http://@HOST@:5443"

mod_muc:
host: "conference.@HOST@"
access: local
access_create: local
access_persistent: local
access_admin: local

I use the ACL called local for both modules and mod_muc works fine.

This is the output/log:

Output and log:
[debug] <0.480.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"">>

to {jid,<<>>,<<"upload.example.com">>,<<>>,<<>>,<<"upload.example.com">>,<<>>}
packet {iq,<<"216">>,get,<<"en">>,undefined,{jid,<<>>,<<"upload.example.com">>,<<>>,<<>>,<<"upload.example.com">>,<<>>},[{xmlel,<<"query">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/disco#info">>}],[]}]}

from {jid,<<>>,<<"upload.example.com">>,<<>>,<<>>,<<"upload.example.com">>,<<>>}
packet {iq,<<"216">>,error,<<"en">>,{jid,<<>>,<<"upload.example.com">>,<<>>,<<>>,<<"upload.example.com">>,<<>>},undefined,[{xmlel,<<"query">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/disco#info">>}],[]},{stanza_error,cancel,405,<<>>,'not-allowed',undefined,[]}]}

<0.481.0>@ejabberd_c2s:send_text:1619 Send XML on stream = <<"">>

I am using verion 16.09. I've been scratching my head for over 2 days and all in vain. Please help me.

I can reproduce your problem

I can reproduce your problem easily. There was some change that maybe added the bug, or it was present before: https://github.com/processone/ejabberd/commit/792e6a7c1c5f5fa0c1a9f7bb2c...

In any case, applying this new fix, it seems to be solved to me:
https://github.com/processone/ejabberd/commit/c5e7b4738f6e2f2bf21da8530e...

Try that fix, and comment if it works for you correctly.

Hi badlop, your fix worked

Hi badlop, your fix worked like a charm. Thank you. Now I am able to use Gajim to perform Service Discovery correctly.

Hi omaraly, I'm facing

Hi omaraly, I'm facing exactly the same problem in version 17.01 which includes badlop commit.
Do you mind shedding some light on this ?

Syndicate content