question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XEP-0363: Not sending headers with upload request

See original GitHub issue

Describe the bug Converse.js does not set the headers provided by the server with the upload. See ‘Requesting a Slot’ and example 6 to see what that looks like.

The <put> element MAY also contain a number of <header> elements which correspond to HTTP header fields. Each <header> element MUST have a name-attribute and a content with the value of the header. Only the following header names are allowed: Authorization, Cookie, Expires. Other header names MUST be ignored by the requesting entity and MUST NOT be included in the HTTP request. The requesting entity MUST strip any newline characters from the header name and value before performing the HTTP request.

To Reproduce You can use mod_http_file_share in Prosody trunk, which now requires an Authorization header on uploads.

Currently Converse.js will receive a HTTP 401 status code when attempting the upload.

Additional context I’m happy to provide test accounts on a server requiring upload headers if needed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jcbrandcommented, Nov 25, 2021

Yes, it’s been fixed on the master branch.

You can try out the latest code here: https://conversejs.org/trunk/fullscreen.html (notice the trunk in the URL).

Please can you tell approximate time for version 9 release?

Soon™

1reaction
jcbrandcommented, Nov 25, 2021

This fix isn’t in Converse 8.0.1.

It will only be part of the next release, version 9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

XEP-0363: HTTP File Upload - XMPP
Abstract: This specification defines a protocol to request permissions from another entity to upload a file to a specific path on an HTTP...
Read more >
XEP 0363: HTTP File Upload support #218 - GitHub
I am sending following request for image sharing in one to one chat : client.use(shareMedia); // plugin created for share media
Read more >
XEP-0363 (file upload) not activated in default ejabberd ...
Conversation says XEP-0363 (file upload) is not supported. I searched on https://docs.ejabberd.im, it seems it is implemented as ...
Read more >
httpupload — HTTP Upload support (XEP-0363) — aioxmpp ...
The XEP-0363 HTTP Upload protocol allows an XMPP client to obtain a PUT and GET URL for storage on the server. It can...
Read more >
[Solved]-XEP-0363: HTTP File Upload in Swift-swift
Have you also installed the ejabberd extension? You should refer to this question no how to setup the extension: HTTP File Upload (XEP-0363)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found