1
0
mirror of https://github.com/etesync/server synced 2024-12-28 18:28:07 +00:00
etesync-server/django_etebase
Tom Hacohen 9a518b3907 Chunks: add error handling for chunks having content or not existing.
If the chunk already has a content and we try to upload it again, we
assume the previous content was correct and this one is the same
(chunks are immutable). We can't actually ensure they are the same due
to the encryption, though they should be.

If a chunk is being uploaded for the first time and doesn't have a
content, throw a validation error rather than throwing an ugly error.
2020-07-10 09:29:21 +03:00
..
drf_msgpack drf_msgpack: add code to parse/serialise msgpack 2020-06-29 14:21:43 +03:00
migrations Revert "django_etebase: make migration generic and not depend on myauth." 2020-07-05 13:15:42 +03:00
token_auth Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
__init__.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
admin.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
app_settings.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
apps.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
models.py Chunk upload: item.uid can never be None so use it directly. 2020-07-10 09:09:11 +03:00
permissions.py Collection: change collections to be an extension of items 2020-06-23 13:03:46 +03:00
renderers.py Views: move the base64 encoding to the renderers. 2020-06-29 15:39:40 +03:00
serializers.py Chunks: add error handling for chunks having content or not existing. 2020-07-10 09:29:21 +03:00
tests.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
urls.py Move the etebase urls configuration to django_etebase. 2020-06-28 17:11:20 +03:00
views.py Views: clean up how we use serializers and remove integrity_errors catch-alls. 2020-07-10 09:27:34 +03:00