Projects tigase _server server-core Issues #442
setPermissions on incoming packets (#442)
Artur Hefczyc opened 10 years ago
Due Date
2015-04-28

There is a mechanism in Tigase which sets permissions on packets produced by a plugin. However, the same code could be executed on incoming packets before they are processed by plugins.

We have this method in SM: setPermissions(....) which is executed on a collection of results produced by a plugin. The same method could/should be executed on a single packet while it is being processed in method: processPacket(Packet packet, XMPPResourceConnection conn).

The best place seems to be after running the packet through preprocessors and before running it through processors. I am not sure if there are any potential side-effects possible.

Wojtek, Bartek, Andrzej, any thoughts or objections?

wojciech.kapcia@tigase.net commented 10 years ago

Applied in changeset commit:tigase-server|b72e5b93.

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
2835
Version
tigase-server-7.1.0
Spent time
4h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#442
Please wait...
Page is in error, reload to recover