Skip to content

BUG: Respect and follow http://www.w3.org/ns/pim/space#preferencesFile if it exists in profile card #38

@hexagon6

Description

@hexagon6

Dear Noel,

I've tried Media Kraken with my solid profile.

It looked like this before using the application:

@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix solid: <http://www.w3.org/ns/solid/terms#>.

<https://solid.example.org/profile/card> a foaf:PersonalProfileDocument;
    foaf:maker <#me>;
    foaf:primaryTopic <#me>.
<#me> a foaf:Person;
    solid:oidcIssuer <https://solid.example.org/>;
    solid:publicTypeIndex <https://solid.example.org/publicTypeIndex.ttl>;
    <http://www.w3.org/ns/pim/space#preferencesFile> <https://solid.example.org/settings/prefs.ttl>.

after a PATCH request with

        INSERT DATA {
            <https://solid.example.org/profile/card#me> <http://www.w3.org/ns/solid/terms#privateTypeIndex> <https://solid.example.org/settings/privateTypeIndex> .
        }

It looks like this:

@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix solid: <http://www.w3.org/ns/solid/terms#>.

<https://solid.example.org/profile/card> a foaf:PersonalProfileDocument;
    foaf:maker <#me>;
    foaf:primaryTopic <#me>.
<#me> a foaf:Person;
    solid:oidcIssuer <https://solid.example.org/>;
    solid:publicTypeIndex <https://solid.example.org/publicTypeIndex.ttl>;
    <http://www.w3.org/ns/pim/space#preferencesFile> <https://solid.example.org/settings/prefs.ttl>;
    solid:privateTypeIndex <https://solid.example.org/settings/privateTypeIndex>.

Also after the PATCH request media kraken created a new https://solid.example.org/settings/privateTypeIndex with PUT, which overrides the existing one, that was listed in the preferencesFile. (actually no, the existing one had a .ttl extension)

This means:

The existing /settings/privateTypeIndex was overridden and I lost links to other documents which were in there!
Interestingly https://solid.example.org/settings/privateTypeIndex.ttl (with extension) already existed (but not https://solid.example.com/settings/privateTypeIndex - without extension), so no information was lost, just another solid app can't find the private type index anymore due to the change...

Hint: My Profile was set up like this https://solid.github.io/type-indexes/#type-indexes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions