Open angelo-v opened 4 years ago
Just noticed, that even in the latter case, I am not able to send a message
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.
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?
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).
@angelo-v We are thinking this has been resolved?
While being logged in as https://angelo.veltens.org/profile/card#me I cannot open the SolidOS Team Chat
Browser Console:
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.