manendra1984 / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
0 stars 0 forks source link

[mod_archive] : Session based settings don't work #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Assume that default save mode is 'body'.

<iq type='result' id='pref1' to='juliet@capulet.com/chamber'>
  <pref xmlns='urn:xmpp:archive'>
    <default otr='concede' save='body'/>
    ...
  </pref>
</iq>

2. Create session settings with 'false' save mode.

<iq type='set' id='pref2'>
  <pref xmlns='urn:xmpp:archive'>
    <session thread='ffd707' save='false'/>
  </pref>
</iq>

3. Send message with thread specified:

<message to='juliet@capulet.com/chamber'>
 <thread>ffd707</thread>
 <body>Hi!</body>
</message>

What is the expected output?

Message must not be saved.

What do you see instead?

msg_handler searches for the rule for the "<thread>ffd70</thread>" session.
So message will be saved.

What version of the product are you using? On what operating system?

Last from prosody-modules.

Please provide any additional information below.

Original issue reported on code.google.com by alexande...@redsolution.ru on 10 Sep 2012 at 10:10

Attachments:

GoogleCodeExporter commented 9 years ago
Here is related patch

Original comment by alexande...@redsolution.ru on 11 Sep 2012 at 1:06

Attachments: