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…

  • uuj8za@piefed.socialOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 hours ago

    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
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      9 hours ago

      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.