Radicale v3.7 collection sharing? (github.com)
from uuj8za@piefed.social to selfhosted@lemmy.world on 17 Apr 13:19
https://piefed.social/c/selfhosted/p/1991644/radicale-v3-7-collection-sharing

Looks like in Radicale 3.7, there is improved collection sharing? Has anyone tried using this?

I haven’t tried any sharing previously because it seemed like it wasn’t officially (or well) supported before, since you had to do some weird symlink hack.

Is sharing now more officially supported now? I looked at the UI, but I didn’t see anything mentioning sharing…

#selfhosted

threaded - newest

Shimitar@downonthestreet.eu on 17 Apr 13:32 next collapse

I have been using the link to share… Its not a weird thing, just a filesystem link between radicale users…

But if now it’s easier to manage, good to know… Let us know!

[deleted] on 18 Apr 00:01 next collapse

.

eszidiszi@lemmy.world on 18 Apr 02:39 collapse

It’s IMHO poorly documented (in terms of visibility).

Since it is not enabled by default, you have to edit your config file with the ‘[sharing]’ section. There are two types, by map and token to conform to different usecases. There are also two different storage types, csv and files. Personally i chose map and csv way.

After adding your config and restarting the server, in the gui you can find a new button to share next to your calendar / carddav and in the bottom right menu an entry to accept invites issued by others.

I previously shared with the symlink too but since this update i got rid of it and used this new system and, well, it works for me (i’m sharing ro only calendar but you can assing [limited] permissions too).

uuj8za@piefed.social on 18 Apr 23:04 collapse

There are two types, by map and token to conform to different usecases.

Ahh, ok… I’m seeing the docs.

ShareType: type of share

    token: token-based share (do not require user authentication)
    map: map-based share (requires user authentication)

Ahh, ok. So whether you need authentication or not.

There are also two different storage types, csv and files.

And the docs for that…

CSV

One CSV file containing one row per sharing config, separated by ; and containing header with columns from above.

If given, properties are stored in JSON format in CSV.
Files

File-based configuration store is using encoded PathOrToken as filename for each config. File contains the data stored as "dict" in binary Python "pickle" format (same is also used for item cache files).

So if you want plaintext vs binary storage.

you have to edit your config file with the ‘[sharing]’ section.

Would you mind sharing your config, pretty please. 🙏

eszidiszi@lemmy.world on 19 Apr 01:05 collapse

Here is the relevant section:

[sharing]
type = csv
database_path = /var/lib/radicale/collections/sharing.csv
collection_by_map = true
permit_create_map = true

Just FYI, my filesystem_folder is defined as /var/lib/radicale/collections.

BTW. The token based sharing, as I understand, still requires auth, just not an user auth but, well, a token one.