Commit graph

127 commits

Author SHA1 Message Date
Enrique J. Hernández Blasco a9f336c69d oc: Check permissions on read opening a shared folder
This is a security issue that allowed a user to read the number
of messages and its subjects when it does not have any permission to read.

Now the user cannot see other's folder without asking for me to the owner.
2016-02-16 14:55:21 +01:00
Enrique J. Hernández Blasco e86e3b2481 oc: Get new change numbers using resource's owner
Instead of using the connected active user.

Although this provides no changes in the result, it could be depending
on changes from the backend so it'd better have it accurated to what
the OpenChange DB API offers.
2016-02-16 14:54:58 +01:00
Enrique J. Hernández Blasco 967cc29c4e oc: Query for fmids in behalf of owner's resource
Instead of using connected active user because the fmids are related
to the root folder (context) owner. This avoids returning back incorrect
identifiers which mostly collide with already associated URLs.
2016-02-16 11:43:21 +01:00
Enrique J. Hernández Blasco e08ee9a265 oc: Use enum mapistore_error instead of int
This specifies a little the scope of the variable to make it
more realistic with the actual values it may have. We do have
a static typed compiled language, why don't we use it?
2016-02-15 15:44:14 +01:00
Enrique J. Hernández Blasco c5b5a4243d oc: Fix compilation warning in MAPIStoreContext 2015-07-25 09:56:21 +02:00
Jesús García Sáez 7bde181d3f oc: check ret value get_new_folderID
On [MAPIStoreContext idForObjectWithKey: key inFolderUrl: url] check the ret value
of mapistore_indexing_get_new_folderID. This should never happen (oh my...) but
if this happens it will be reported
2015-07-21 19:47:17 +02:00
Jesús García Sáez 1336a1d5a8 oc: remove useless mapistore_indexing call
[mapping registerURL ...] will insert the mappingId in indexing database
there is no need to call, again, mapistore_indexing_record_add_mid
2015-07-21 19:47:17 +02:00
Jesús García Sáez f4e3b98042 Nothing changed: format and hoarding code removed 2015-07-21 11:08:02 +02:00
Jesús García Sáez cfab18e1b8 oc: activate user context on initialization 2015-07-21 11:08:02 +02:00
Jesús García Sáez 7d2f96e96b oc: use activate instead of activateWithUser
100% of the times the user is the one that MAPIStoreUserContext
already has, so no need to have it as an argument.
2015-07-15 11:26:05 +02:00
Enrique J. Hernández Blasco 030d343432 oc: Do not create indexing entry for a root folder
This is done by OpenChange after this patchset is merged:

https://github.com/openchange/openchange/pull/273
2015-04-16 23:23:32 +02:00
Enrique J. Hernández Blasco 68ebc9e0ff oc: Use dlinklist from samba for now
Due to https://github.com/openchange/openchange/pull/204.

Until it is published by OC or dismissed.
2015-02-10 23:37:40 +01:00
Julien Kerihuel 52ad0e0e5b Prevent SOGo backend from crashing when mapistore_set_connection_info is
not called beforehand and connInfo is not initialized.
2014-11-19 17:12:28 +01:00
Jesús García Sáez f1d14fdeca multitenancy: adapt openchangedb_* calls 2014-11-19 17:12:26 +01:00
Jesús García Sáez a5550cff18 avoid decode @ from url with username on it 2014-11-19 17:12:26 +01:00
Jesús García Sáez 1a2fe8908b Revert "Merge pull request #2 from Zentyal/jgarcia/fix-encoding-of-mapistoreuris" 2014-08-01 15:50:17 +02:00
Kamen Mazdrashki 98505c1b6b oc/MAPIStoreContext: Fix log messages to actually print 64bit FMIDs
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>

Conflicts:
	OpenChange/MAPIStoreContext.m
2014-07-02 15:18:33 +02:00
Jesús García Sáez 6bef678114 fix format logging uint64_t 2014-07-02 14:47:57 +02:00
Jesús García Sáez c81476bd04 no need to modify url 2014-07-02 14:47:45 +02:00
Jesús García Sáez 2aa71cc8a3 check ret value properly 2014-07-02 14:43:42 +02:00
Jesús García Sáez 34b98a563d get_new_folderID functions are now on mapistore_indexing 2014-07-02 14:42:17 +02:00
Carlos Pérez-Aradros Herce 33b353b974 Moved to abstract index_context instead of tdb_wrap 2014-07-02 14:41:25 +02:00
Ludovic Marcotte 93f9a7273e Now handle mem context when saving messages and removed useless debugging. 2013-03-13 15:04:11 -04:00
Wolfgang Sourdeau ea98a35fad getNewFMIDs: new wrapper method around openchangedb_get_new_folderIDs 2012-10-12 23:25:51 -04:00
Wolfgang Sourdeau 5e2453f3c4 getNewChangeNumbers: new wrapper for openchangedb_get_new_changeNumbers 2012-10-12 17:42:43 -04:00
Wolfgang Sourdeau aa24d5133e Without the backend prefix, the mapistore backend context would never be found 2012-10-05 09:54:22 -04:00
Wolfgang Sourdeau 2758b486f7 Output url of object being registered 2012-09-19 11:58:52 -04:00
Wolfgang Sourdeau 9669cd37c4 One comment and one header added. 2012-09-18 10:12:36 -04:00
Wolfgang Sourdeau fc62d76b1f Monotone-Parent: 7c8fce0426b2ec4def5226f16a9bcf2cff5dcfb9
Monotone-Revision: 1cc99cc487a5bfdb791d4067042b904d7eb47795

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-09-07T16:46:18
Monotone-Branch: ca.inverse.sogo
2012-09-07 16:46:18 +00:00
Wolfgang Sourdeau bde4b22ba7 Monotone-Parent: 572391072fa416635b9921d39ed76478ed762097
Monotone-Revision: 105b571703ff5c4cc1024854ef8a1d987aef2bf1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-17T19:04:57
Monotone-Branch: ca.inverse.sogo
2012-08-17 19:04:57 +00:00
Wolfgang Sourdeau fb297c913c Monotone-Parent: 1fb3121c84e0bb2773973fcfde109c7b26530951
Monotone-Revision: e2f910a1982b774a3f5dfd586d968821441f2076

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-17T17:56:25
Monotone-Branch: ca.inverse.sogo
2012-08-17 17:56:25 +00:00
Wolfgang Sourdeau 95a443d89a Monotone-Parent: 3f8608c82d9c379cc9e0fea6ffe853cc1949a24b
Monotone-Revision: 905276f295d6f28a6946297f6a7af9ad60f71842

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-06-29T17:59:38
Monotone-Branch: ca.inverse.sogo
2012-06-29 17:59:38 +00:00
Wolfgang Sourdeau 07cc5e8cf8 Monotone-Parent: 8d523fe7796cff9d335706a89105b900379bfa52
Monotone-Revision: b664e2e19975c70a7614aa975a3a045f0bec7ec3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-06-15T13:33:21
Monotone-Branch: ca.inverse.sogo
2012-06-15 13:33:21 +00:00
Wolfgang Sourdeau 13eab74477 Monotone-Parent: 4ea252c6500eb31c2c96a411c6338ecc5e71eef0
Monotone-Revision: abafefa4d1fdf7e9a4cc6b7d33dfe22f822d54d3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-09T02:07:31
Monotone-Branch: ca.inverse.sogo
2012-03-09 02:07:31 +00:00
Wolfgang Sourdeau 43a02620a6 Monotone-Parent: 3a9c8a7bada864ce6b83c04661c09d59c8ecf8d9
Monotone-Revision: 31ddf1e225a45a18cc6693f45745d82251abfd64

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-23T21:14:02
Monotone-Branch: ca.inverse.sogo
2012-02-23 21:14:02 +00:00
Wolfgang Sourdeau a7920d6aaf Monotone-Parent: a3b799159abc70880dcdddcf22236376e1646a5d
Monotone-Revision: fa0f9bd311fd3d1239970c0d361a8ef16ecfa4f9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-23T21:10:18
Monotone-Branch: ca.inverse.sogo
2012-02-23 21:10:18 +00:00
Wolfgang Sourdeau d92d97dcfa Monotone-Parent: bf1a16583327d284f358b77678f9f89a4fbae729
Monotone-Revision: 32f9a24520dba6eee15ab6f517da6469a40bf0e1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-14T14:47:06
Monotone-Branch: ca.inverse.sogo
2012-02-14 14:47:06 +00:00
Wolfgang Sourdeau f1a3bdd884 Monotone-Parent: 82a617e3ad7bb1a96e181c9d1c240bc2c89de7f7
Monotone-Revision: fdb9e758160f3e3509c45bb379d9169a3eb0118a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-03T15:05:55
Monotone-Branch: ca.inverse.sogo
2012-02-03 15:05:55 +00:00
Wolfgang Sourdeau 054847d0ca Monotone-Parent: aee2a5da27231d521f813fbb791f9e2c968f94b2
Monotone-Revision: 6b3a3195262782a0783af8640a0fb24dd1103387

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-30T20:12:18
Monotone-Branch: ca.inverse.sogo
2012-01-30 20:12:18 +00:00
Wolfgang Sourdeau 4b81cb167d Monotone-Parent: 4e23e038f2b0b7eddf8b30700b8c9a8910768f98
Monotone-Revision: 9235e5dc4d151a3cba8ad842ac39e1b2d18c8201

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-29T19:55:21
Monotone-Branch: ca.inverse.sogo
2012-01-29 19:55:21 +00:00
Wolfgang Sourdeau 83709fd892 Monotone-Parent: 3dc6d9dff558dfb935fde8eee2c978d9a9d1a774
Monotone-Revision: e89a46b719b80b6d34d9e7a110754e60344dd669

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-26T19:54:36
Monotone-Branch: ca.inverse.sogo
2012-01-26 19:54:36 +00:00
Wolfgang Sourdeau 6f78e819f9 Monotone-Parent: e13446efcded2d880cbb5bb48b3bde3b54faf46e
Monotone-Revision: ac435c09e6aeb4ef0087488eb9403ccc7f5fc64e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-01T22:33:46
Monotone-Branch: ca.inverse.sogo
2011-12-01 22:33:46 +00:00
Wolfgang Sourdeau 42c47c2e03 Monotone-Parent: fb8ba445e08690bfab22a30460b8df60a58af1c7
Monotone-Revision: c494bd8edc3f42328eeae244084d2d97828732b9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-29T01:39:07
Monotone-Branch: ca.inverse.sogo
2011-11-29 01:39:07 +00:00
Wolfgang Sourdeau 86f278fd77 Monotone-Parent: 1d22ee7adc99b9420d9a7b859dfb1048c8c92eaa
Monotone-Revision: ad417bdf1bec487a4e724865914dd8c70bb16db5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-20T15:44:56
Monotone-Branch: ca.inverse.sogo
2011-11-20 15:44:56 +00:00
Wolfgang Sourdeau 2681fc06cd Monotone-Parent: 4133fa3bdfc5ea96190a7418e63c70b71d18a166
Monotone-Revision: cad6ada90ff5ceee70d17d329089fd9a10525383

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-09T15:02:29
Monotone-Branch: ca.inverse.sogo
2011-11-09 15:02:29 +00:00
Wolfgang Sourdeau 9c17e7be92 Monotone-Parent: d75ed56bb85ad0c1c37621595267a590aa9b60db
Monotone-Revision: 3e033b86ce4c3221ccb5e2e1dd845bd3a033ec31

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-13T01:03:09
Monotone-Branch: ca.inverse.sogo
2011-10-13 01:03:09 +00:00
Ludovic Marcotte 8fb4411dd6 See ChangeLog
Monotone-Parent: 34186beb96b4e03796e53fcc658539fd1c3dbb8a
Monotone-Revision: 8027e57cbf5cbb4ab2ee6bf9509fe2f571f150c1

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-09-04T16:25:32
Monotone-Branch: ca.inverse.sogo
2011-09-04 16:25:32 +00:00
Wolfgang Sourdeau 785aa3c23e Monotone-Parent: 5c85a1a1d9228ad7653497f882f4fccc69f1d924
Monotone-Revision: 6ebfad7c881ce0f2eee326f619d2e684e3f91df3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-10T18:33:13
Monotone-Branch: ca.inverse.sogo
2011-08-10 18:33:13 +00:00
Wolfgang Sourdeau 580e0027f9 Monotone-Parent: 9df3ab1d4e8ca89e2cd5da61c1d1c9b6d4f6ff8e
Monotone-Revision: e81a19428dc35c851d16d525d7d41f645b87aa93

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-08T18:54:02
Monotone-Branch: ca.inverse.sogo
2011-08-08 18:54:02 +00:00
Wolfgang Sourdeau 736ccd7bf0 Monotone-Parent: 7e2d84b941087b6996499d8c6a6832f1b87db837
Monotone-Revision: 267b360550dcc02b5b9590b3fe3268d521bd74e4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-04T14:09:59
Monotone-Branch: ca.inverse.sogo
2011-08-04 14:09:59 +00:00