diff options
author | sualko <klaus@jsxc.org> | 2017-10-20 15:35:03 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2017-10-20 15:35:03 +0300 |
commit | 64575bf3c266cbeb88a2371cd887c054075afc8a (patch) | |
tree | 9e0f456f30ba61cd1fc3a764832e9a885d06644a /build/lib/db/README.md | |
parent | 534432e0ba766f4180260cdcc64614cf7ed0f6e2 (diff) |
build v3.3.1v3.3.1
Diffstat (limited to 'build/lib/db/README.md')
-rw-r--r-- | build/lib/db/README.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/lib/db/README.md b/build/lib/db/README.md index fce2e82..8dea934 100644 --- a/build/lib/db/README.md +++ b/build/lib/db/README.md @@ -14,4 +14,13 @@ The following mappers are used: - StanzaMapper -> parent of all the other mappers - MessageMapper -> used to store Message entities inside the longpolling table. - PresenceMapper -> used to save, update and fetch presences of the users - - IQRoster doesn't have a mapper since this won't be saved in the DB.
\ No newline at end of file + - IQRoster doesn't have a mapper since this won't be saved in the DB. + + +# Important note on userids and jid's + +When users and Stanza's containing users are stored inside the database this must be done using the Nextcloud userid +and not using a jid! So at all times the user 'admin' must be stored as 'admin' and not as 'admin@localhost/internal' even +in the `to` and `from` parameters of raw xml stanzas. This to support multiple domain Nextcloud instances. +The userId's are escaped using the `OCA\OJSXC\AppInfo\Appplication::sanitizeUserId` function to support the XMPP standards. +When the userId is available inside the class the `OJSXC_UserId` paramter of `OCA\OJSXC\AppInfo\Appplication` must be used.
\ No newline at end of file |