Hi,
mod_webpresence documentation installed on 23.10 describes /presence/jid/<user>/<server>/avatar/ as a valid URI to access user overall status, however experimentation show that URL should be /presence/jid/<user>/<server>/image/avatar/ as otherwise 404 error are returned:
- URL according to documentation
$ curl -vD - -H 'Host: xmpp.lan' http://[::1]:5280/presence/jid/user/xmpp.lan/avatar/
* Trying [::1]:5280...
* Connected to ::1 (::1) port 5280
> GET /presence/jid/user/xmpp.lan/avatar/ HTTP/1.1
> Host: xmpp.lan
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
HTTP/1.1 404 Not Found
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< Content-Length: 330
Content-Length: 330
<
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
* Connection #0 to host ::1 left intact
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head><body><h1>Not found</h1></body></html>
- URL according to experimentation
$ curl -vD - -H 'Host: xmpp.lan' http://[::1]:5280/presence/jid/user/xmpp.lan/image/avatar/ ; echo
* Trying [::1]:5280...
* Connected to ::1 (::1) port 5280
> GET /presence/jid/user/xmpp.lan/image/avatar/ HTTP/1.1
> Host: xmpp.lan
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Content-Length: 527
Content-Length: 527
< Content-Type: image/png
Content-Type: image/png
<
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
* Failure writing output to destination
* Closing connection
However, the code path within src/mod_webpresence.erl looks to be correct according to documentation, but I'm not an expert enough with Erlang to properly troubleshoot the issue.
Thanks,
Bertrand
Hi,
mod_webpresence documentation installed on 23.10 describes
/presence/jid/<user>/<server>/avatar/as a valid URI to access user overall status, however experimentation show that URL should be/presence/jid/<user>/<server>/image/avatar/as otherwise 404 error are returned:However, the code path within
src/mod_webpresence.erllooks to be correct according to documentation, but I'm not an expert enough with Erlang to properly troubleshoot the issue.Thanks,
Bertrand