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

Using media-kraken with a read-only profile document #31

Closed
pchampin opened this issue Feb 2, 2024 · 2 comments
Closed

Using media-kraken with a read-only profile document #31

pchampin opened this issue Feb 2, 2024 · 2 comments
Labels
question Further information is requested

Comments

@pchampin
Copy link

pchampin commented Feb 2, 2024

I'm trying to use my "historical" WebID (https://champin.net/#pa) with Solid. The WebID document is hosted on a regular web server, so it is not writable.

I get the error below, that says "Can't create type index without a writable profile document". Since my profile contains a link to a writable type index, and since I don't expect media-kraken to modify my profile document itself, I don't think that this should be a problem.

More generally, is it OK for a Solid application to assume that they have permission to modify my profile document?

Error: Can't create type index without a writable profile document

t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:41502
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
i@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127177
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127381
o/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127440
o/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127320
mb@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:41266
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:43346
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
i@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127177
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127381
o/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127440
o/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:127320
d709/</</e.createPrivateTypeIndex@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:50511
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:286509
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
n@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45015
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45219
i/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45278
i/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45158
e@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:286686
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:285611
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
n@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45015
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45219
i/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45278
i/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45158
e@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:286237
t/<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:111:282538
l@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170132
c/o._invoke</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:169921
E/</<@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:170561
n@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45015
s@https://noeldemartin.github.io/media-kraken/js/0.0c3c3aec.worker.js:23:45219

@NoelDeMartin
Copy link
Owner

Hey, thanks for opening an issue!

The matter of whether profiles should be writable or not is something that is still under discussion, we talked about it here in case you want to learn more: solid/webid-profile#40

In any case, Media Kraken relies on type indexes, and so if one doesn't exist it'll need to create a new one and write it to the profile. I am aware that this is a limitation that makes it incompatible with some POD providers; but I'm ok with that because I think interoperability is very important and I don't see a point to Solid without it.

Having said that, this doesn't explain why you're getting this error if you mention that you've already got a type index. I've looked at your profile, and it seems like the problem is that you only have a public type index; but Media Kraken is trying to use a private type index (because it assumes that your movies are private by default). So you should be able to fix that by creating a private type index, which is writable by the application (the document itself can obviously be private and require authentication to be read/written).

Let me know if that fixes your problem!

@NoelDeMartin NoelDeMartin added the question Further information is requested label Feb 2, 2024
@pchampin
Copy link
Author

pchampin commented Feb 2, 2024

Let me know if that fixes your problem!

It does :)

in case you want to learn more: solid/webid-profile#40

I'll have a closer look, thanks.

@pchampin pchampin closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants