You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
404 when retrieving dataset URL with encoded question mark #1653
When running the below, I'm receiving a 404, when I'd expect for it to succeed. The below uses the Inrupt Solid Client library.
constcontainerUrl=…consturl=containerUrl+encodeURIComponent(`https://www.veyndan.com?foo=bar`);awaitsaveSolidDatasetAt(url,awaitcreateSolidDataset(),{fetch: fetch});for(constthingofgetThingAll(awaitgetSolidDataset(containerUrl,{fetch: fetch}))){console.log(awaitgetSolidDataset(thing.url,{fetch: fetch}));// This receives a 404}
I ran the above on my Inrupt Pod, and it succeeded as expected.
After looking into this it seems our URL -> file path converter generates invalid file paths causing this issue. https%3A%2F%2Fwww.veyndan.com%3Ffoo%3Dbar becomes https:%2F%2Fwww.veyndan.com?foo=bar. Will need to ensure no unsupported characters get added to the path or at the very least throw an error.
Seems the problem specifically occurs with a : in the path, in other cases an error is thrown.
Activity
jvherweg commentedon Jun 8, 2023
After looking into this it seems our URL -> file path converter generates invalid file paths causing this issue.
https%3A%2F%2Fwww.veyndan.com%3Ffoo%3Dbarbecomeshttps:%2F%2Fwww.veyndan.com?foo=bar. Will need to ensure no unsupported characters get added to the path or at the very least throw an error.Seems the problem specifically occurs with a
:in the path, in other cases an error is thrown.