Closed Benjamin-L closed 5 months ago
Will you send logs? Yes
Not seeing any logs from you
Will you send logs? Yes
Not seeing any logs from you
Ah, sorry, I forgot to do that yesterday. I've uploaded logs now.
Thanks for putting together a fix so quickly! I'll be able to test it later today :)
For links, the result of the /search
endpoint is specified at https://spec.matrix.org/v1.10/client-server-api/#_matrixclientv3search_results, and the count
property is a member of Result Room Events.
count
is indeed optional. It seems unfortunate (and probably not really intended?) that all of the properties in that structure, including results
, are optional, but that's what the spec says.
Steps to reproduce
count
field in the response body for the/client/v3/search
endpoint.For a server implementation reproducing the element bug, you can use commit
5c39c7c5
of grapevine, conduitdf16b2ba
(before a workaround for element was added inedfd3c1f
), or conduwuita2ee6b41
with theelement-hacks
feature disabled (before the workaround was made unconditional in0214caea
).Outcome
What did you expect?
Either some search results appear or it shows that there were no results. The
count
field is marked as optional in the spec, so it's absence should not break search client-side.What happened instead?
Hangs indefinitely, showing the loading animation:
Returning any value in the
count
field causes search to function as expected.Operating system
NixOS (linux)
Browser information
Firefox 126.0
URL for webapp
app.element.io
Application version
Element version: 1.11.67 Crypto version: Rust SDK 0.7.0 (61b175b), Vodozemac 0.5.1
Homeserver
Grapevine 5c39c7c5fff0e1a59999f0c13bf4aa48cb159129
Will you send logs?
Yes