-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add & Remove activities cannot be used to manage caches of collections #465
Comments
This is potentially also related to #461 |
I think this is a misunderstanding of the first bullet point. It does not prohibit anything. It is true that "your server cannot modify [a collection on my server]", generally speaking, but I can still send a notification that I Added something to my collection.
In the currently deployed ecosystem, this would probably be done by adding |
I think this is the right way to do it. |
tangent 1: https://www.w3.org/wiki/ActivityPub/Primer/Server-Managed_Collections could be signalled by not having an tangent 2: https://w3id.org/fep/c7d3 tries to formalize the use of tangent: there are other potential values of
which is a bit vague and also circular, in that "attributedTo" is defined using the term "attributed". oxford defines "attribute" like so:
erincandescent also writes about issues with attributedTo here: https://socialhub.activitypub.rocks/t/fep-0391-special-collection-proofs/4165/15 long story short, if you want something that works right now, put i'll also make a separate issue for |
We do clarify the usage of Add Activities with regards to Caching in the Primer: https://www.w3.org/wiki/ActivityPub/Primer/Add_activity
My reading of the ActivityPub spec, as it stands today is that the |
To keep this issue focused, I should've probably noted that tangent as a separate issue: #466 Perhaps an idea to move comments relating to that to this issue & hide them here as "off topic" |
i read it as an
this is in the primer page you linked, but i don't know if any of that should propagate back to the official specification document. prior cases of proposed clarification have been left somewhat open-ended on whether it makes sense to incorporate non-normative notes into an updated editor's draft. |
I think it's probably fair to say that updating your cached copy of a collection does not count as updating the collection itself. I note in my book that it's hard to maintain a synchronized copy of the collection, unless you know the sorting order and uniqueness requirements. I recommend not trying to keep a copy of the collection, but using |
I'm not suggesting keeping copies of collections, but that caching is important, and very often we just want to communicate membership in a collection. I'd probably say Add and Remove do have different semantics if OrderedCollection or just Collection. But I do think the way ActivityPub is currently written doesn't account for the caching of collections, or at least, if it does it is not explicit enough and that is likely to cause implementation issues. I would perhaps suggest for Collections that can contain duplicates, that having a |
AFAICT, ActivityPub doesn't account for caching of anything. At least I don't see the word cache anywhere in the specification. The S2S Update activity does mention object copy twice, which is probably caching, but it's not explicitly called out that way. |
there are recommendations along the line of "http caching headers SHOULD be used/respected", iirc |
We do mention a "local representation" of objects in the discussion of the |
Possibly related to #407 as well, I am just realizing |
@trwnh yeah, I'd possibly even go as far as saying it's a near duplicate.. I'm not sure why I didn't find that issue when I opened this one (I'm pretty sure I searched) |
Currently
The first bullet point essentially prohibits my server from sending your server a Add activity to notify your server that I've added an actor on your server to my Collection, since the target is a collection on my server your server cannot modify it.
I think there needs to be an additional bullet point supporting the caching of collections use case:
But then Collections also currently don't contain a backlink to the Actor who manages or owns them, see: #466.
The text was updated successfully, but these errors were encountered: