-
-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http upload file send is defective when server (jabberd) is configured with max_size: infinity #1222
Comments
The immediate bug seems to be in
max_file_sizes[conversation.account] for negativity. Max file size of -1, in turn, comes from Xmpp.Xep.HttpFileUpload.Module.extract_max_file_size() at
The Right Way (TM) to fix this, IMO, is to not signal non-numeric information in-band with numeric information, e.g., return |
Nullable value types are still rather experimental in Vala (there is a compiler flag We generally prefer "misbehavior" over segfaults, that's why we try to not use nullable value types (like |
* Fix for ejabberd XMPP server 'infinity' http upload file size announce - fixes #1222 * Update 0363_http_file_upload.vala
* Fix for ejabberd XMPP server 'infinity' http upload file size announce - fixes #1222 * Update 0363_http_file_upload.vala
Sending files either doesnt work (after selecting file, you get an error) or uses jingle instead of http upload when both sides are online. This occurs with ejabberd when the max_size parameter from mod_http_upload is set to 'infinity'. Setting it to a arbitray number fixes the issue.
The text was updated successfully, but these errors were encountered: