Projects tigase _server server-core Issues #1263
MAM skips RSM set in query when data form is missing (#1263)
Bartosz Małkowski opened 3 years ago

When I send

<iq id="9WiSYvPOxvASCjWbxwKGYczu" type="set">
    <query xmlns="urn:xmpp:mam:2" queryid="q1lyNwwpQzQyvzvQ9N1N1YSd">
        <x xmlns="jabber:x:data" type="submit">
            <field var="FORM_TYPE">
                <value>urn:xmpp:mam:2</value>
            </field>
            <field var="with">
                <value>int@mix.tigase.org</value>
            </field>
        </x>
        <set xmlns="http://jabber.org/protocol/rsm">
            <before/>
            <max>50</max>
        </set>
    </query>
</iq>

Then everything is as expected: I get 50 last messages in to/from int@mix.tigase.org.

But when I send

<iq id="tFj2svb3cfqmDD41raosDn2w" type="set">
    <query xmlns="urn:xmpp:mam:2" queryid="IfkABbGLCDnFZDXOMBh9BWM0">
        <set xmlns="http://jabber.org/protocol/rsm">
            <before/>
            <max>50</max>
        </set>
    </query>
</iq>

Then always I will get some amount of messages (not 50!) from beginning.

Andrzej Wójcik (Tigase) commented 3 years ago

Moved to tigase-server as this is part of a shared code located there.

Andrzej Wójcik (Tigase) commented 3 years ago

This issue should be fixed in the next build. This fix applies to MAM in MUC, MIX and 1-1 chats.

wojciech.kapcia@tigase.net batch edited 6 months ago
Name Previous Value Current Value
Iterations
empty
Candidate for next minor release
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
Candidate for next minor release
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/server-core#1263
Please wait...
Page is in error, reload to recover