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

Long Chat: 403 Error when attempting to add message #190

Closed
brownhoward opened this issue Oct 11, 2019 · 3 comments
Closed

Long Chat: 403 Error when attempting to add message #190

brownhoward opened this issue Oct 11, 2019 · 3 comments
Assignees
Labels

Comments

@brownhoward
Copy link

When attempting to add a chat message to a Long Chat on another User's Pod, when I click the 'Enter' icon nothing appears to happen. However, a series of errors are displayed in the Console:

index.js.1405
PUT https://khoward.dev.inrupt.net/public/My%20Long%20Chat/2019/10/11/chat.ttl 403 (User Unauthorized)
infinite.js:44 
createIfNotExists doc FAILED: <https://khoward.dev.inrupt.net/public/My%20Long%20Chat/2019/10/11/chat.ttl>: Error: Web error: 403 (User Unauthorized) on PUT of <https://khoward.dev.inrupt.net/public/My%20Long%20Chat/2019/10/11/chat.ttl>
fetcher.js:1230 
Uncaught (in promise) Error: Web error: 403 (User Unauthorized) on PUT of <https://khoward.dev.inrupt.net/public/My%20Long%20Chat/2019/10/11/chat.ttl>

Dev Notes

Ruben proposed (successfully) that the /settings/prefs/.ttl.acl file should be updated to read:

@prefix : <#>.
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix c: </profile/card#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

:owner
acl:accessTo <prefs.ttl>; acl:agent c:me; acl:mode acl:Control, acl:Read, acl:Write.

# The public has read permissions
<#public>
    a acl:Authorization;
    acl:agentClass foaf:Agent;
    acl:accessTo <prefs.ttl>;
    acl:mode acl:Read, acl:Write.
@michielbdejong
Copy link
Contributor

Making the user's preferences public sounds like quite a radical solution, with negative consequences.
You could probably add that other pod as a trusted app. Let me try to reproduce.

michielbdejong added a commit to SolidOS/userguide that referenced this issue Dec 20, 2019
This is quite confusing even for advanced users,
as SolidOS/solid-panes#190 shows.
We probably want to rethink this UX flow in the long run,
but for now let's at least document how it *currently* works.
@michielbdejong
Copy link
Contributor

Continued in ^

@michielbdejong
Copy link
Contributor

I tested this and after adding Moe's pod as a trusted app, Joe was able to write a message in
https://tic-tac-moe.inrupt.net/private/long-chat/
user: tic-tac-joe
pwd: 123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants