Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache webcal calendars in browser's local storage #364

Open
georgehrke opened this issue Mar 23, 2016 · 12 comments
Open

Cache webcal calendars in browser's local storage #364

georgehrke opened this issue Mar 23, 2016 · 12 comments

Comments

@georgehrke
Copy link
Contributor

in addition to: #132

cache (not password protected) webcal subscriptions using HTML5 Browser Storage.

needs discussion about security:

  • users with the same browser profile might be able to read the locale storage. Potentially dangerous when webcal subscription contains private data. (e.g. Facebook provides a webcal (url contains hash) with the events you attend or you saved)
    • can we add something like "on logout" scripts to clear locale storage when a user logs out?
    • Is there some easy way to encrypt the data?
@georgehrke georgehrke added this to the 1.3 milestone Mar 23, 2016
@georgehrke
Copy link
Contributor Author

cc @LukasReschke

@DeepDiver1975
Copy link
Member

this way any webcal is only available in the web app - I'd expect them in any connected caldav client as well. can subscription help us with this respect?

@georgehrke
Copy link
Contributor Author

As far as I understood CalDAV subscriptions its only meant to store the actual link and not the objects itself. Is this wrong?

@DeepDiver1975
Copy link
Member

As far as I understood CalDAV subscriptions its only meant to store the actual link and not the objects itself. Is this wrong?

I was hoping you already know more about this 😭 😉

@georgehrke
Copy link
Contributor Author

it's already pretty hard to find some documentation about it.
Can you link me to the standard?

@georgehrke
Copy link
Contributor Author

According to this sabre file it's only a list.

Searching the web for CalDAV managed subscriptions or "{http://apple.com/ns/ical/}refresh rate" didn't turn up anything useful 😕

I begin to question this standard's existence 😭

@georgehrke
Copy link
Contributor Author

https://github.com/fruux/sabre-dav/blob/master/tests/Sabre/CalDAV/Subscriptions/CreateSubscriptionTest.php#L19L39

Although this still doesn't explain whether or not the server is supposed to cache the objects or if it's really just a list of subscriptions

@georgehrke
Copy link
Contributor Author

Maybe @evert can enlighten us 😆

@evert
Copy link

evert commented Apr 1, 2016

It's just a list of subscriptions. Although a server-side cache might be cool =)

I don't think a spec exists. I believe I just reverse-engineered it.

@georgehrke
Copy link
Contributor Author

I don't think a spec exists.

Haha, that explains a lot 🙈

Thx a lot :)

@georgehrke
Copy link
Contributor Author

@DeepDiver1975 For now I'll implement webcal in the client only as planned for 1.1.

If anything caching webcal and propagating them to clients as ordinary calendars would go into ownCloud 9.1.

@georgehrke georgehrke modified the milestones: 1.3-current, 1.4-next (ownCloud 9.1) Jul 6, 2016
@georgehrke georgehrke modified the milestones: 1.5-next, 1.4-current Aug 14, 2016
@tcitworld
Copy link
Member

What would be used as encryption key if we were to encrypt the local storage saved calendars ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants