Open bourgeoa opened 2 years ago
How can we know whose pod we are on? If we know the WebID, we look in the profile for a pim:storage triple. If we don't, we can look in the root container for a pim:Storage triple. Then we see if our current location is within one of those. It's possible that both of those are missing, in which case the only way is to guess by assuming a given domain/container structure and that may fail. If we don't know the WebID, we can't be guaranteed of finding the profile. So SolidOS should never fail when it can't find the profile. It might warn or refuse to perform certain actions, but it should not fail.
And we can't make the assumption that we will always know "whose pod we are on".
The way to find the top boundary of the pod is to check the folders at each path (from top or bottom but bottom probably best to avoid unauthorized errors) to find one which declares itself to be a solid:Storage in the body RDF. IIRC that is the current protocol.
https://solidproject.org/TR/2021/protocol-20211217#storage is the relevant section where there is a server requirement to advertise a Link relation type Storage and client requirements to discover the storage in which a resource is part of - essentially given a URL, check its headers for the link relation, if not found, check its container's headers all the way to root container until found.
Duplicate ticket: https://github.com/SolidOS/solidos/issues/128
This seems to be a fix in SolidOS and in the server too. The protocol can help to some extend.
@theRealImy Pods on NSS are usually set on the url domain : http://solidos.solidcommunity.net/ this is not the case on CSS https://solidweb.me/test/
We have the following errors