1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00
Commit Graph

901 Commits

Author SHA1 Message Date
Thomas Tanghus
7441ae66e7 Add {@inheritdoc} for backends 2014-03-16 01:30:33 +01:00
Thomas Tanghus
5b30b408d3 camelCase variabels 2014-03-14 20:57:26 +01:00
Thomas Tanghus
e0846b454f Return null if shared address book is not found 2014-03-14 20:36:44 +01:00
babelouest
c85b284208 Revert "a little code cleaning, removed {count} value during the import process"
This reverts commit 2a43562229.
2014-03-12 14:23:42 -04:00
babelouest
2a43562229 a little code cleaning, removed {count} value during the import process 2014-03-12 13:32:09 -04:00
babelouest
919f540d01 Import from multiple formats 2014-03-11 16:43:32 +01:00
Thomas Tanghus
cbb7b0db8f Remove wrong argument to HttpMiddleware ctor 2014-03-11 12:59:06 +01:00
Thomas Tanghus
c184fc5973 Remove wrong argument to HttpMiddleware ctor 2014-03-11 12:59:06 +01:00
Thomas Tanghus
b685af611a Remove unused code in Http middleware 2014-03-10 22:24:19 +01:00
Thomas Tanghus
ef30cdc524 Add userid to address book query. Fix owncloud/security-tracker#48 2014-03-10 15:53:49 +01:00
Thomas Tanghus
1afddaa98e Finally actually implement the interfaces I claim to.
\Iterator, \Countable, \ArrayAccess

Still need some checks to assure validity after unset()
2014-03-10 15:16:15 +01:00
Thomas Tanghus
45aa3198f7 More cleanups 2014-03-09 15:03:29 +01:00
Thomas Tanghus
d724149c56 More fixes 2014-03-08 19:09:17 +01:00
Thomas Tanghus
55c50dd1b2 More fixes 2014-03-08 18:13:43 +01:00
Thomas Tanghus
f63081a06b More fixes 2014-03-08 17:37:05 +01:00
Thomas Tanghus
f6bfea77e7 Scrutinizer cleanup 2014-03-08 16:22:51 +01:00
Thomas Tanghus
f1aa86204f Return cached shared address book. Fix #442 2014-03-08 14:10:30 +01:00
Thomas Tanghus
8cbfec3b0a Scrutinizer fixes 2014-03-08 04:32:18 +01:00
babelouest
2dc75e962e apparently it works -ish 2014-03-03 23:11:18 -05:00
babelouest
ac16864059 fix bug in ldap->vcard translation that caused the remote update not to work (was hard to find this one !) 2014-03-03 22:59:50 -05:00
Thomas Tanghus
4bbbe3d95a Revert "fix ldap a bit" @babelouest
This reverts commit 5cb99a657e.
2014-03-03 01:16:02 +01:00
babelouest
a13e1bd28c Merge branch 'master' of https://github.com/owncloud/contacts into ldap
Conflicts:
	lib/backend/abstractbackend.php
	lib/backend/ldap.php
2014-02-27 13:51:21 -05:00
Thomas Tanghus
ddcf0f2e53 Resize contact photo on upload. Fixes #296 2014-02-27 11:03:14 +01:00
Thomas Tanghus
394d15350e Remove use of %webroot%. Closes #406 2014-02-26 23:23:01 +01:00
Thomas Tanghus
809d79163b Remove stray App instantiation. Thx @ednt :) 2014-02-26 12:59:08 +01:00
Thomas Tanghus
2a1f308acb Improve search. Fix #385 and #421 2014-02-26 12:30:38 +01:00
Thomas Tanghus
16de03fcfd Quiet down address book provider 2014-02-26 12:29:05 +01:00
babelouest
3300bed849 Merge branch 'master' of https://github.com/owncloud/contacts 2014-02-25 07:53:35 -05:00
babelouest
23f7729018 tmp 2014-02-23 16:33:50 -05:00
babelouest
f412d41a9b apparently it works -ish 2014-02-10 15:16:43 -05:00
babelouest
a4e45c435e Merge branch 'master' of https://github.com/owncloud/contacts into ldap 2014-02-10 13:31:39 -05:00
Thomas Tanghus
b672cd7ea7 Doc for carddav backend class 2014-02-10 16:55:51 +01:00
Thomas Tanghus
a7d3a69fdd Show year in CalDAV BDAY events 2014-02-08 19:22:22 +01:00
Thomas Tanghus
047ed7634f Merge pull request #401 from owncloud/chat_app_integration
Add ownCloud handle field
2014-02-08 14:25:26 +01:00
LEDfan
90ec264caa Add 'x-' since the protocol is not standard 2014-02-08 12:28:21 +01:00
babelouest
9d83e92cb0 it's been a long time 2014-02-07 15:55:55 -05:00
Thomas Tanghus
1ab880f348 Also log errors 2014-02-05 22:48:29 +01:00
Thomas Tanghus
c75b52cb8f Revert "Initialize JSONReponse data with null"
This reverts commit e2898139bb.
2014-02-05 22:46:26 +01:00
Thomas Tanghus
0b6cd04a3b Fix invalid BDAYs before import. Fixes #395 2014-02-04 22:33:07 +01:00
Thomas Tanghus
8383bafce6 Try parse invalid BDAYs already imported. Refs #395 2014-02-04 22:23:36 +01:00
Thomas Tanghus
e2898139bb Initialize JSONReponse data with null 2014-02-04 21:38:22 +01:00
LEDfan
a008057f59 Use dash instead of underscore 2014-02-04 08:03:32 +01:00
LEDfan
104c7d9be4 Add ownCloud handle field 2014-02-03 18:37:55 +01:00
Thomas Tanghus
7ada585112 Don't thrown exception in CardDAV backend if card not found 2014-02-03 17:36:02 +01:00
Thomas Tanghus
3f23a5afb3 Fix SQL query. Refs. #386 2014-02-03 14:53:04 +01:00
Thomas Tanghus
8a7ada1c37 Add support for HEAD and OPTIONS to address book 2014-01-29 23:49:58 +01:00
Thomas Tanghus
04dc2c8a12 Add some checks. Refs #386 2014-01-28 17:21:54 +01:00
Thomas Tanghus
f347f3725a name -> displayname 2014-01-27 17:51:13 +01:00
Thomas Tanghus
a5d3697b97 Don't reset array. Refs #361 2014-01-27 17:31:05 +01:00
jbtbnl
9530b8d14d Partial fix for #379. 2014-01-27 13:47:00 +01:00
Thomas Tanghus
c3d30be656 CardDAV: Etag wasn't returned in getCard() 2014-01-26 23:00:32 +01:00
Thomas Tanghus
b269bfce6d Fix photo loading 2014-01-26 03:22:49 +01:00
Thomas Tanghus
9abdeb75ce 2014 2014-01-26 00:40:22 +01:00
Thomas Tanghus
c738174937 Refactor groups management. Fix #370
- Moved adding/removing groups to OCA\Contacts\VObject\VCard
- CATEGORIES property wasn't removed when empty
- When removing all groups from contact, it wasn't assigned to ungrouped.
- When adding contact(s) to group it wasn't removed from ungrouped until
  you changed to other group and back.
2014-01-25 17:08:01 +01:00
Thomas Tanghus
a742486150 Indentation 2014-01-25 03:42:03 +01:00
Thomas Tanghus
217923d6a5 Fix CSRF checks. Ref owncloud/core#6840 2014-01-24 16:24:31 +01:00
Thomas Tanghus
e22d39aa10 Try to fix DAV adr.book creation. Refs. #361 2014-01-23 10:23:30 +01:00
Thomas Tanghus
b81a475b78 Do more error checking. Refs. #367 2014-01-22 22:22:58 +01:00
Thomas Tanghus
a8de751533 Merge pull request #323 from owncloud/remove-numRows-master
- replace numRows() calls
2014-01-22 12:55:45 -08:00
Thomas Tanghus
86e2d305a8 Better check for UID. Refs. #367 2014-01-22 18:27:34 +01:00
Thomas Tanghus
b0474d7da4 Fix empty FN. Related: #353 2014-01-22 17:46:58 +01:00
Thomas Tanghus
0a59d6c164 Namespace fix 2014-01-22 17:45:24 +01:00
Jan
2fa9b95cad Merge branch 'master' of https://github.com/owncloud/contacts.git 2013-12-31 12:21:23 +01:00
Thomas Müller
33016b3b1b - replace numRows() calls
- fixing some namespace and syntax issues
2013-12-30 14:10:22 +01:00
Thomas Tanghus
48c2f8eaa5 Merge branch 'master' of github.com:owncloud/contacts 2013-12-28 10:02:56 +01:00
Thomas Tanghus
b532adfaaa Throw a more understable exception 2013-12-28 10:02:22 +01:00
Jan
6f8888c9b1 Merge branch 'master' of https://github.com/owncloud/contacts.git 2013-12-21 16:50:06 +01:00
Thomas Tanghus
3cb61fc10c Shorten request URI on selected export. Refs. #304 2013-12-20 00:11:48 +01:00
Thomas Tanghus
944e6e79ce Test for string value. Refs. 307 2013-12-19 23:29:14 +01:00
Jan
0b2d5a788c Merge branch 'master' of https://github.com/owncloud/contacts.git 2013-12-18 11:45:43 +01:00
Thomas Tanghus
faff3aaaa6 Don't index PHOTO and truncate value to 254 chars. Fixes #306 2013-12-17 18:05:36 +01:00
Jan
38ab10ef3e Merge branch 'master' of https://github.com/owncloud/contacts.git 2013-12-17 16:28:50 +01:00
Jan
1ca5efeec4 Revert "Possibly fixes owncloud/#298"
This reverts commit bb1a799c84.
2013-12-17 16:26:20 +01:00
Thomas Tanghus
c430120092 Check for null, not just falsy. Refs #298 2013-12-17 16:11:55 +01:00
Thomas Tanghus
58f6f36fc3 Erronious continue statement. Fix owncloud/calendar#260 2013-12-17 15:38:10 +01:00
Jan ten Bokkel
bb1a799c84 Possibly fixes owncloud/#298 2013-12-16 13:39:39 +01:00
Jan ten Bokkel
0386e1fcfc Implemented default ownCloud contact avatars. Fixes https://github.com/owncloud/contacts/issues/287 2013-12-14 15:22:42 +01:00
Thomas Tanghus
1ee1ca9dd2 Missing var. Refs #295 2013-12-13 09:14:29 +01:00
Thomas Tanghus
fcf1d99fce Don't try to set FN if it's null. Possibly fix #293 2013-12-13 08:49:55 +01:00
Thomas Tanghus
fe368e69a7 Used wrong index. Refs #269 2013-11-28 14:21:06 +01:00
Thomas Tanghus
5f7d7a9ddb Prevent duplicate URI. Fix #263 2013-11-28 14:15:17 +01:00
Thomas Tanghus
6fc07aad83 Don't useoc:// wrapper. Fix #261 2013-11-28 12:18:15 +01:00
Nicolas Mora
5cb99a657e fix ldap a bit 2013-11-24 15:07:04 -05:00
babelouest
6f7f0dd871 Merge branch 'master' of https://github.com/owncloud/contacts 2013-11-16 14:46:23 -05:00
Thomas Tanghus
c9e1155211 Missing comma in ContactPhotoController. Fixes #259 2013-11-16 12:00:35 +01:00
Thomas Tanghus
b5858dd78f Temporarily disable caching for userAddressBooks 2013-11-13 20:24:02 +01:00
Nicolas Mora
90e8773ec3 Merge branch 'master' of https://github.com/owncloud/contacts 2013-11-08 11:20:25 -05:00
Thomas Tanghus
dd846a15f8 Fix setting address book active 2013-11-07 14:24:55 +01:00
Thomas Tanghus
aa8a51d9a7 Move cacheThumbnail to Properties. Fix #252 2013-11-07 14:06:31 +01:00
babelouest
9db34d133d Merge branch 'master' of https://github.com/owncloud/contacts 2013-11-05 10:30:02 -05:00
Thomas Tanghus
7416a16bef Refresh groups on CardDAV update. Refs #246 2013-11-04 15:59:07 +01:00
Thomas Tanghus
a13a319efb Right owner for shared AB. Fix #229 2013-10-30 16:15:11 +01:00
Vincent Petry
42091106c4 Fix app not loading any more in OC6 with PHP 5.3 2013-10-24 11:14:46 +02:00
Thomas Tanghus
3ba2913279 Temporary hack to make sharing look workable. Refs #229 2013-10-23 19:12:31 +02:00
Thomas Tanghus
a388525111 Adjust code to appframework api 2013-10-23 12:56:30 +02:00
Thomas Tanghus
fa83aaef80 Fix link in search results 2013-10-23 02:56:17 +02:00
babelouest
935b10f77b Merge branch 'master' of https://github.com/owncloud/contacts 2013-10-22 15:55:04 -04:00
Thomas Tanghus
bf095621e0 Fix editing contact photos. 2013-10-22 17:10:23 +02:00
babelouest
86fb9df26e Merge branch 'master' of https://github.com/owncloud/contacts 2013-10-20 14:18:22 -04:00
Thomas Tanghus
155a61c867 Misc cleanup 2013-10-18 15:29:32 +02:00
Thomas Tanghus
1d29b943ae Finally works with core master 2013-10-17 02:10:50 +02:00
Thomas Tanghus
99899531d2 Remove legacy categories code 2013-10-17 02:10:50 +02:00
Thomas Tanghus
d71d4c84fd Current adjustements with core. Still doesn't work with master 2013-10-11 14:47:54 +02:00
babelouest
9252f5ddb6 Merge branch 'master' of https://github.com/owncloud/contacts 2013-10-08 00:01:12 +02:00
Thomas Tanghus
4c2fe05bd4 Fix CardDAV updating/deleting 2013-10-03 18:09:19 +02:00
Thomas Tanghus
f8c46f1ad1 Various route and request adjustments
* All request bodies are now JSON.
* Contact property add/update/delete uses the same PATCH route.
2013-10-03 04:15:12 +02:00
Thomas Tanghus
6b88946e91 Now in a semi-working state 2013-10-01 19:15:22 +02:00
Thomas Tanghus
de0c81e6a3 Adjust to core interfaces 2013-10-01 19:15:22 +02:00
Thomas Tanghus
8b6f877fea PATCH test WiP 2013-10-01 19:15:22 +02:00
Thomas Tanghus
ec06ba01e4 Port hack from 5.0.12 to fix wrongly escaped parameters. #146
Add a test for it and remove validator plugin as it's now done
in the CardDAV plugin to avoid parsing unnecessarily.
2013-10-01 19:15:22 +02:00
Thomas Tanghus
5c2aefbc5a loadTagsFor() => load() 2013-10-01 19:15:22 +02:00
Thomas Tanghus
e06bd9b17a Fix birthday generation and add methods for creating birthday events 2013-10-01 19:15:22 +02:00
Thomas Tanghus
a15430dd18 Fix fix of misleading import progress :P 2013-10-01 19:15:22 +02:00
Thomas Tanghus
efc3a9c7d8 Fix misleading import progress 2013-10-01 19:15:22 +02:00
Thomas Tanghus
67412f3679 Port controllers to OCP\AppFramework 2013-10-01 19:15:22 +02:00
Thomas Tanghus
cfd8cd02b3 Now loads with OCP\AppFramework 2013-10-01 19:15:22 +02:00
Thomas Tanghus
bbcfb14363 Fix namespaces in CardDAV ValidatorPlugin 2013-10-01 19:15:21 +02:00
Thomas Tanghus
e7f17bdcb6 Add CardDAV ValidatorPlugin 2013-10-01 19:15:21 +02:00
babelouest
ef76dd3540 enable ldap backend for pull request 2013-10-01 11:15:53 -04:00
Thomas Tanghus
3249720f40 Fix namespaces in CardDAV ValidatorPlugin 2013-09-16 21:30:51 +02:00
Thomas Tanghus
3aeb94fc5d Add CardDAV ValidatorPlugin 2013-09-16 21:30:51 +02:00
Thomas Tanghus
cf92673e8c OC_ -> OCP\ 2013-09-16 02:24:08 +02:00
Thomas Tanghus
c7fc472c75 Fix userDeleted hook 2013-09-14 18:35:44 +02:00
Thomas Tanghus
5f17dc9b5e Allow address book list to be cached. 2013-09-10 07:17:05 +02:00
Thomas Tanghus
5bc8e08c6c Call JSONResponse parent ctor 2013-09-10 07:16:32 +02:00
Thomas Tanghus
322357dba1 New FileActions script for importing from filesystem. Closes #190
Needs owncloud/core#4784 to work properly
2013-09-10 00:30:39 +02:00
Thomas Tanghus
3ee20ca1b6 Urlencode/decode uri in CardDAV backend. Fix #188
Google uses a URL as UID, and we use UID for URI so got a 404
on Google imports because the card URL was truncated.
2013-09-06 18:52:42 +02:00
Thomas Tanghus
8c3303c760 Cache address books in localStorage. 2013-09-06 06:15:23 +02:00
Thomas Tanghus
8e7ab166fe Rewrote getting/setting address book properties. Ref #76 2013-09-05 22:37:48 +02:00
Thomas Tanghus
a3f7199b0e Remove obsolete code 2013-09-05 22:12:49 +02:00
Thomas Tanghus
feb200bba6 Finally (re)implemented (de)activate address books. Closes #48 2013-09-05 22:08:34 +02:00
Thomas Tanghus
7031bb57c6 Fix typo for #186 2013-09-04 20:25:23 +02:00
Thomas Tanghus
0d628fb766 Backends were instantiated before user was logged in and broke CardDAV
fix #186
2013-09-04 20:10:43 +02:00
Thomas Tanghus
8ff09aab27 Move profile photo handling to separate controller 2013-09-04 08:03:33 +02:00
Thomas Tanghus
fa43515037 Remove obsolete comment 2013-09-03 19:54:25 +02:00
Thomas Tanghus
e76606b419 Don't emit signals in batch operations. 2013-09-03 19:23:11 +02:00
Thomas Tanghus
83d3320339 First iteration of barch deletion #110 2013-09-03 14:09:13 +02:00
Thomas Tanghus
d5d71cda4e Fix argument in backend 2013-09-03 14:09:13 +02:00
Thomas Tanghus
73135c62d8 Fix arguments to backend 2013-09-03 14:09:13 +02:00
Thomas Tanghus
4a32bff52a Bailout with exception 2013-09-03 14:09:13 +02:00
Thomas Tanghus
1a24590322 Use OCP\Image 2013-09-03 14:09:13 +02:00
Thomas Tanghus
db24d26e7d Fix Contact arguments in GroupController 2013-09-03 14:09:13 +02:00
Thomas Tanghus
4a67ad28ca Improved unit tests and adjust backend method signatures. 2013-08-26 20:10:29 +02:00
Thomas Tanghus
26cfb42e3a Add missing indexes to address book array 2013-08-20 19:01:56 +02:00
Thomas Tanghus
2ae6f1ff32 Disable FS proxy on file_put_contents/file_get_contents
owncloud/contacts#174
2013-08-15 20:11:40 +02:00
Thomas Tanghus
d5313e1237 Add TODO 2013-08-15 20:11:40 +02:00
Thomas Tanghus
92aff552e0 Catch exceptions in GroupController 2013-08-15 20:11:40 +02:00
Nicolas Mora
fcbb555ab2 personalsettings draft 2013-08-03 22:55:26 -04:00
Nicolas Mora
07b4edcf07 sorry, typo fixed 2013-08-03 22:46:27 -04:00
Nicolas Mora
fab557a015 Merge branch 'master' of https://github.com/owncloud/contacts 2013-08-03 22:43:25 -04:00
Nicolas Mora
fc09c31def use new backend prefs 2013-08-03 22:40:52 -04:00
Thomas Tanghus
8a12538e24 Add mergeFromVCard() method to Contact.
This is to be used on import, if a contact with identical UID exists.
2013-08-01 12:12:38 +02:00
Thomas Tanghus
73b3c7346d Fix group/category deletion. 2013-06-27 15:53:31 +02:00
Thomas Tanghus
b77f104447 Improve feedback on import. 2013-06-27 15:53:31 +02:00
Thomas Tanghus
f0d257ef00 Helper function for getting vCard groups (not categories) 2013-06-27 15:53:31 +02:00
Thomas Tanghus
bafb64870a TODO comment. 2013-06-27 15:53:31 +02:00
Thomas Tanghus
bc56282e9b Missing test for #120 2013-06-03 17:27:48 +02:00
Thomas Tanghus
3d0e6c7933 Update thumbnail when card is updated via CardDAV. Refs #120 2013-06-03 17:27:48 +02:00
Nicolas Mora
6367edf8b2 add connector 2013-06-02 15:52:46 -04:00
Nicolas Mora
ea828cb93d it's not over yet 2013-06-02 15:50:57 -04:00
Nicolas Mora
305fa564c4 Merge branch 'master' of https://github.com/owncloud/contacts 2013-06-02 15:01:40 -04:00
Nicolas Mora
7b75285d3b seperate find multiple cards and find one card 2013-06-02 15:00:40 -04:00
Thomas Tanghus
a54f65f963 public abstract public function? D'uh 2013-05-31 21:32:45 +02:00
Thomas Tanghus
78c6ece5ed CardDAV: Set 'supported-address-data' property. 2013-05-31 21:32:45 +02:00
Thomas Tanghus
b71b0c280b Add missing public declarations 2013-05-31 21:32:45 +02:00
Thomas Tanghus
dfefa2be55 Only return collection on GET.
Opens up for using HEAD to get status.
2013-05-29 12:56:34 +02:00
Thomas Tanghus
ae095acb2b Don't hardcode backend name in AddressBookController 2013-05-29 12:56:34 +02:00
Thomas Tanghus
aea9e3f48a Let contactDeletion() hook take multiple ids. 2013-05-27 06:56:08 +02:00
Thomas Tanghus
d20ff966fe Return false if no rows was retrieved in getContact() 2013-05-27 06:56:08 +02:00
Thomas Tanghus
667a362fb3 Move purging indexes to addressBookDeletion() hook 2013-05-27 06:56:08 +02:00
Thomas Tanghus
1ae88f66c6 Add Properties::purgeIndexes() to cleanup after multiple contacts. 2013-05-27 06:56:08 +02:00
Thomas Tanghus
f7f1a34992 Throw 404 if address book wasn't found 2013-05-26 22:16:43 +02:00
Thomas Tanghus
ac2f08e7ee Fix index/purge hooks. 2013-05-25 01:35:42 +02:00
Thomas Tanghus
44c4a2fd49 Check if contact was retrieved 2013-05-25 01:35:42 +02:00
Thomas Tanghus
c97f498905 Ported export. Fixes #108 2013-05-24 20:35:23 +02:00
Thomas Tanghus
9cd71e2a5e Get Contact through AddressBook to check permissions. 2013-05-24 20:16:09 +02:00
Thomas Tanghus
ce4088f7ff Remember to return the response on error. 2013-05-22 03:37:56 +02:00
Thomas Tanghus
494d3944a5 Finish moving contacts between address books/backends. Ref #57 2013-05-22 03:23:24 +02:00
Thomas Tanghus
2b2e9cd79e Also touch address book on contact deletion. 2013-05-22 03:23:24 +02:00
Thomas Tanghus
af7359f50e Missing namespace separator 2013-05-22 03:23:24 +02:00
Thomas Tanghus
ac68b27d93 Search both in metadata and properties for contact displayname 2013-05-22 03:23:24 +02:00
Thomas Tanghus
e8c7047869 Implement rename group. Refs #97 2013-05-21 23:39:50 +02:00
Thomas Tanghus
9b6a2fde01 Database backend: Lookup parent in updateContact() if not known. 2013-05-21 23:38:02 +02:00
Thomas Tanghus
06c4d611b2 Missing namespace separator in GroupController 2013-05-20 23:36:49 +02:00
Thomas Tanghus
aab66afb03 Let backend add/remove CATEGORIES instead of firering N requests 2013-05-19 03:16:36 +02:00
Thomas Tanghus
fc9dfdf192 Oops, don't declare a method public twice. 2013-05-19 02:39:16 +02:00
Thomas Tanghus
9410affdc0 Make App::getBackend() non-static. 2013-05-19 01:36:35 +02:00
Thomas Tanghus
591a48aa67 Added custom GroupProperty. Refs #96 2013-05-19 00:54:51 +02:00
Thomas Tanghus
4e70507601 Removed some debugging 2013-05-19 00:54:50 +02:00
Thomas Tanghus
34bdb4e70f Minor interface cleanups 2013-05-19 00:54:50 +02:00
Thomas Tanghus
5581b62c9a Missing method name to OC_L10N calls. 2013-05-18 16:49:02 +02:00
Thomas Tanghus
b5123ab99b Don't use backend directly when updating address book 2013-05-18 06:57:38 +02:00
Thomas Tanghus
cab617f0e0 Implement HTTP Middleware
Intercept exceptions thrown and return suitable HTTP responses.
2013-05-18 04:58:41 +02:00
Thomas Tanghus
f67d18b894 Return status on partially imported vcards 2013-05-18 04:58:41 +02:00
Thomas Tanghus
653ff015e8 Access check on import 2013-05-18 04:58:41 +02:00
Thomas Tanghus
54e4693b7f Move decoding vCard properties to start of upgrade. 2013-05-15 22:59:42 +02:00
Thomas Tanghus
23b6e074da Proper updating on deletion of contact photo. Fix #77 2013-05-15 01:02:38 +02:00
Thomas Tanghus
65c4b71965 Return response on error. 2013-05-15 01:01:32 +02:00
Thomas Tanghus
77f931cfec Workaround for owncloud/core#2814 Fixes #78 2013-05-14 19:17:35 +02:00
Thomas Tanghus
e4540c2bc0 Set some status headers in AddressBookController. 2013-05-10 02:18:31 +02:00
Thomas Tanghus
2dc1250a1e Replace method to fix parameters with no name. 2013-05-10 02:14:19 +02:00
Thomas Tanghus
4ad995d815 Quick hack to allow setting FN from array 2013-05-09 21:19:12 +02:00
Thomas Tanghus
85c2e3229e Only check Contact permissions on save/update/delete. 2013-05-09 19:14:57 +02:00
Thomas Tanghus
7d9194e066 CardDAV: Wrong arguments used to deleteContact() 2013-05-09 15:44:21 +02:00
Thomas Tanghus
02e8ad0c86 CardDAV: getContact didn't return a uri. 2013-05-09 15:32:22 +02:00
Thomas Tanghus
afed6933cb Updated LDAP Backend 2013-05-09 14:07:27 +02:00
Thomas Tanghus
58d1d7ae27 Return null if lastModified can't be converted to DateTime 2013-05-09 05:59:57 +02:00
Thomas Tanghus
b8b9c5dc91 Add GET route to single contact. 2013-05-09 05:58:28 +02:00
Thomas Tanghus
980a0dbdf1 Add getETag to Contact (PHP) 2013-05-09 05:56:32 +02:00
Thomas Tanghus
e7267209ef Backgroung load on import and async load on init. Closes #49 2013-05-08 06:47:36 +02:00
Thomas Tanghus
d4f4c97b2d Fix method names 2013-05-07 19:18:23 +02:00
Thomas Tanghus
f76ca64ba4 Add renaming address books. 2013-05-07 19:16:06 +02:00
Thomas Tanghus
9df6967ac8 Contacts: Some status checks 2013-05-06 01:50:03 +02:00
Thomas Tanghus
757bc10216 Contacts: Implement move to address book. Still some rough edges. 2013-05-06 01:49:10 +02:00
Thomas Tanghus
958af7bbe0 Contacts: Return error if contact photo can't be loaded 2013-05-06 01:48:07 +02:00
Thomas Tanghus
5125adb834 Contacts: Check if backend methods are implemented. 2013-05-05 22:23:11 +02:00
Thomas Tanghus
49f728a86a Contacts: Don't mix possible permissions with actual permissions. 2013-05-05 22:21:42 +02:00
Thomas Tanghus
73055dffd4 Contacts: Copy/paste errors. 2013-05-05 16:58:51 +02:00
Thomas Tanghus
7b8110e85a Contacts: Don't update REV for CardDAV requests if it exists already. 2013-05-05 16:27:10 +02:00
Thomas Tanghus
e13899da50 Contacts: Reenable permission checking on Contact::_set(). 2013-05-05 15:28:26 +02:00
Thomas Tanghus
b647181044 Contacts: Old VCard -> VCardLegacy 2013-05-05 15:26:35 +02:00
Thomas Tanghus
52a72a080b Contacts: Use AddressBook to access Contact in controller. 2013-05-04 22:49:36 +02:00
Thomas Tanghus
58031b7d86 Contacts: Namespace fix 2013-05-04 22:48:30 +02:00
Thomas Tanghus
56a982b19c Contacts: Temporarily disable permission check in Contact::__set() 2013-05-04 22:47:34 +02:00
Thomas Tanghus
514672ba3d Contacts: Update docs for backends. 2013-05-03 05:00:50 +02:00
Thomas Tanghus
f3a7d23e87 Contacts: Shared backend didn't always return correct permissions. 2013-05-03 05:00:50 +02:00
Thomas Tanghus
26cc08f553 Contacts: Tighten up on permission checking. 2013-05-03 05:00:50 +02:00
Thomas Tanghus
d4b18987ae Contacts: Abstract js address book access and further simplify import. 2013-05-02 20:42:24 +02:00
Thomas Tanghus
065015471a Contacts: Fix debug stmts 2013-05-01 01:48:11 +02:00
Thomas Tanghus
50b360a963 Contacts: Missing $this-> 2013-05-01 01:48:11 +02:00
Thomas Tanghus
56831dfa67 Contacts: Don't set no-cache if caching is intended. 2013-04-30 19:58:54 +02:00
Thomas Tanghus
c05e739bb0 Contacts: Call parents ctor in JSONResponse. 2013-04-30 19:57:39 +02:00
Thomas Tanghus
e7d52c5437 Contacts: Reenabled search. Currently only for own, local contacts. 2013-04-30 02:06:11 +02:00
Thomas Tanghus
a7b30d8c5a Contacts: Property parameters wasn't saved 2013-04-27 04:38:28 +02:00
Thomas Tanghus
f1276c846e Contacts: Add IMPP SIP 2013-04-27 04:36:45 +02:00
Thomas Tanghus
370b8ba416 Contacts: Use own method instead of duplicating db query. 2013-04-27 03:09:24 +02:00
Thomas Tanghus
e03839838e Contacts: Throw exception on missing parameters. 2013-04-27 03:05:06 +02:00
Thomas Tanghus
49b97e6415 Contacts: Removed redundant App instantiation in ContactController. 2013-04-27 02:55:34 +02:00
Thomas Tanghus
a4b22fd8bb Contacts: Use timestamp for ctag 2013-04-27 02:20:12 +02:00
Thomas Tanghus
e1e06c4f78 Contacts: Proper access control in AddressBook and Contact 2013-04-27 01:46:25 +02:00
Thomas Tanghus
a2ab3254ab Contacts: Return false on error in db backend 2013-04-27 01:46:25 +02:00
Thomas Tanghus
b28796e93d Contacts: Namespace fix 2013-04-26 16:54:18 +02:00
Thomas Tanghus
4610367d8d Contacts: Only purge contacts index if they exists 2013-04-26 16:53:33 +02:00
Thomas Mueller
950e410c0d PHP 5.3 compatibility 2013-04-26 15:36:43 +02:00
Thomas Tanghus
375bcac080 Contacts: Remove update from interface 2013-04-25 12:33:52 +02:00
Thomas Tanghus
eb86535393 Contacts: Removed abstract method that PHP 5.3 didn't like. 2013-04-25 12:31:30 +02:00
Thomas Tanghus
a7f9a83985 Contacts: Add SettingsController to DIContainer 2013-04-25 04:21:56 +02:00
Thomas Tanghus
a4456db329 Contacts: Use $this->api->getUserId() in Controllers 2013-04-25 04:21:14 +02:00
Thomas Tanghus
1c0c8097f2 Contacts: Move code to SettingsController 2013-04-25 04:19:41 +02:00
Thomas Tanghus
a573aa16a5 Contacts: Add SettingsController 2013-04-25 03:56:20 +02:00