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

Cannot load SolidOS team chat when logged in #48

Open
angelo-v opened this issue Sep 23, 2020 · 5 comments
Open

Cannot load SolidOS team chat when logged in #48

angelo-v opened this issue Sep 23, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@angelo-v
Copy link
Contributor

While being logged in as https://angelo.veltens.org/profile/card#me I cannot open the SolidOS Team Chat

image

Browser Console:

Complaint: Error: Error recording your partipation: Exception in update: Error: Update: Can't make changes in uneditable <https://solidos.solid.community/Team/SolidOs%20team%20chat/index.ttl>
Error: Update: Can't make changes in uneditable <https://solidos.solid.community/Team/SolidOs%20team%20chat/index.ttl>
  undefined
    Error: Update: Can't make changes in uneditable <https://solidos.solid.community/Team/SolidOs%20team%20chat/index.ttl>  undefined
        at e.value (https://solidos.solid.community/mashlib.min.js:1:27185)  undefined
        at https://solidos.solid.community/mashlib.min.js:19:7918  undefined
        at new Promise (<anonymous>)  undefined
        at Object.u.pad.participationObject (https://solidos.solid.community/mashlib.min.js:19:7438)  undefined
        at https://solidos.solid.community/mashlib.min.js:128:321833

It works when I load the page while not being logged in and then log in, but as soon as I reload the page the error occurs again.

@angelo-v
Copy link
Contributor Author

Just noticed, that even in the latter case, I am not able to send a message

image

@timbl
Copy link
Contributor

timbl commented Sep 27, 2020

Interesting problem with caching maybe. Looks like maybe you loaded the data when not logged in and your local quad store saved the response. Then you log in. Then you try to modify the same document and it checks in the store whether we have information on whether we. Have write access and it says yes we have info and no we don’t have write. So we need a way of invalidating or retrying that data — or 403 or 401 errors For that matter — which predate your login.

@angelo-v
Copy link
Contributor Author

Indeed, the GET request for the chat document does not send an Authorization header and the response contains Link header WAC-Allow: user="read",public="read"

Shouldn't he chat be fetched after the authentication took place?

@timbl
Copy link
Contributor

timbl commented Feb 3, 2021

When you initially go to the chat, you may be logged in or not. If you are not logged in, you can read the chat, but the message composition box is replaced with a login button, so you can't sent messages anyway. At that point there is a fetch with metadata saying that the chat file is not editable. Unfortunately if you the log in, that HTTP metadata the WAC-Allow data I guess, is used even though it is out of date. Because of RDF lib #441. It needs to know to ignore metadat from before the last login state change, which will cause it to fetch again if it needs to. (Or it may already have another request it can use, from since the login).

@SharonStrats SharonStrats added the bug Something isn't working label Mar 12, 2023
@SharonStrats
Copy link
Contributor

@angelo-v We are thinking this has been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants