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

fix: Rewrite getPodBase to always get correct podBase #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 7, 2022

  1. fix: Rewrite getPodBase to always get correct podBase

    The new algorithm uses a combination of looking at the response headers to see if the current resource is the podBase, as defined by [`Clients can determine the storage of a resource by moving up the URI path hierarchy until the response includes a Link header with rel="type" targeting http://www.w3.org/ns/pim/space#Storage.`](https://solidproject.org/TR/protocol#storage), and at the same time also looking if there is a pim:Storage (as object) triple in the resource stating that this resource is the podBase; as some server implementations use this technique. Lastly, it also checks if there is a pim:storage (as predicate) triple in the resource, defining where the podBase is stored, used e.g. in the WebID resource on ESS.
    smessie committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    d4effb3 View commit details
    Browse the repository at this point in the history