#1325 XEP-0313 (mam): Prosody is not returned item-not-found when an unknown item id is used in <after> or <before>
Prosody is not returned an item-not-found error when an unknown item is used in <after> or <before>.
Please provide a snippet of the part of the specification which we violate
XEP-0313 states that "If the UID contained within an <after> or <before> element is not present in the archive, the server MUST return an item-not-found error in response to the query." (§4.1.4)
Please provide a link to the specification:
This was a recent change to the XEP that I did not notice.
The current behavior was introduced with #624 and is embedded in the archive API.
Have fixes but I'm not sure how to handle the transition since the fix is not to mod_mam, but every storage driver that currently exists.