Project

General

Profile

Automatic Archiving

Aleksandr Kostyrev
Added almost 5 years ago

Please, tell me how can I enable Automatic Archiving for all users?

When I manually set archiving for user as stated in Example 34. Client enables auto archiving of http://xmpp.org/extensions/xep-0136.html#auto

it works

but I'd like not to do it for all my users programmatically.

I use tigase-server-5.2.0-b3447

with

--cluster-mode = true

config-type = --gen-config-def

--debug = archive

--bosh-extra-headers-file = etc/bosh-extra-headers.txt

--user-db = mysql

--auth-db = tigase-auth

--admins = admin@atlas-2.ru

--user-db-uri = jdbc:mysql://hostname/tigasedb?user=test_user&password=test_pass&autoCreateUser=true

--virt-hosts = atlas-2.ru

--sm-plugins = +jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+presence,+jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+msgoffline,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,+pep,-zlib,+message-archive-xep-0136

--auth-db-uri = jdbc:mysql://hostname/EXIM?user=test_user&password=test_pass

--comp-class-1 = tigase.archive.MessageArchiveComponent

--comp-name-1 = message-archive

message-archive/archive-repo-uri=jdbc:mysql://hostname/tigmsg?user=test_user&password=test_pass


Replies (6)

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Currently it's not possible, but it's planned, please see #1489

Added by Aleksandr Kostyrev almost 5 years ago

So for now it is like this:

I can programmatically enable archiving for a user, but later the user could disable it by himself?

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

This is correct. From your question I think the XEP-0136 might be not what you are looking for. The XEP defines message archive which is totally controlled by a user. User can enable it, disable it, can update chat history, can send off the record messages, etc... It is not supped to be controlled by the service admin.

Added by Aleksandr Kostyrev almost 5 years ago

Disagreed)

If server administration policies require that every message is logged automatically (see Security Considerations) then:

The server MUST enable automatic archiving when each stream is opened.

Clients MUST NOT be allowed to disable automatic archiving.

If the server has not received a request from a client for its user's archiving preferences (see Determining Preferences) within a few seconds of authenticating the client then the server MUST send a warning message to the client

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

When you cite the XEP please give either a link or section number. Yes, indeed, I missed this part, thank you for pointing this out. I think this part is not implemented yet.

Added by Aleksandr Kostyrev almost 5 years ago

sorry, will do provide a link in the future.

thank you for you support!

    (1-6/6)