Skip to content

OCM changes and missing example configs #5413

Description

@MahdiBaghbani

Debugging sharing between Nextcloud and CERNBox I see a bit of duplication that is not reflected in the configs:

/sciencemesh is used for:

  • The [http.services.sciencemesh] HTTP service (web app access, invite handling)
  • Legacy web app URLs like /external/sciencemesh/{token}/...
  • Configured via ocm_mount_point = "/sciencemesh"

/ocm-received is used for:

  • The new LibreGraph/Graph API (spaces-based web UI)
  • The "Shared With Me" view in the modern ownCloud web interface
  • Generated by EncodeOCMShareID() function

They both point to the same ocmreceived driver but serve different access patterns:

User clicks share in web UI (SharedWithMe)
    -> /remote.php/dav/spaces/ocm-received$... 
        -> /ocm-received/{shareId}
            -> ocmreceived driver

User accesses via web app link
    -> /external/sciencemesh/{token}/...
        -> /sciencemesh/{shareId}
            -> ocmreceived driver

So both mount points are needed for full functionality. The configuration should have both:

# dataprovider-sciencemesh.toml
[[grpc.services.storageprovider]]
driver = "ocmreceived"
mount_path = "/sciencemesh"    # legacy/web app access
...

[[grpc.services.storageprovider]]
driver = "ocmreceived"
mount_path = "/ocm-received"   # new LibreGraph/spaces UI
...

Activity

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

Metadata

Metadata

Assignees

Labels

OCMOpen Cloud Meshhelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions