Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    I just realized that the default specifications for ActivityPub/ActivityStreams do not have a way to perform an update on an object's ID.

    Pianificato Fissato Bloccato Spostato Uncategorized
    activitypubdevfedidevactivitypub
    13 Post 6 Autori 11 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • mariusor@metalhead.clubM Questo utente è esterno a questo forum
      mariusor@metalhead.club
      ultima modifica di

      I just realized that the default specifications for ActivityPub/ActivityStreams do not have a way to perform an update on an object's ID. (ie, moving it from example.com/1 -> example.com/2)

      An Update activity does not allow ID updates because it would lose the reference to the original one. (It can be massaged by using an Origin property, but I don't like that).

      Another option would be to use a Move activity (which is defined as moving objects between collections), where the Origin property is the object itself instead of a collection. (I like this behaviour better, as it requires less divergence from the spec)

      #ActivityPub #fedidev #ActivityPubDev

      mariusor@metalhead.clubM thisismissem@hachyderm.ioT 2 Risposte Ultima Risposta Rispondi Cita 0
      • mariusor@metalhead.clubM Questo utente è esterno a questo forum
        mariusor@metalhead.club @mariusor@metalhead.club
        ultima modifica di

        Is anyone aware of a FEP for that?

        #ActivityPub #ActivityPubDev #FEP

        evan@cosocial.caE silverpill@mitra.socialS 2 Risposte Ultima Risposta Rispondi Cita 0
        • evan@cosocial.caE Questo utente è esterno a questo forum
          evan@cosocial.ca @mariusor@metalhead.club
          ultima modifica di

          @mariusor it's not easy; the ID is really where the thing is, as well as what it's named.

          We have some work going on it; try LOLA.

          LOLA Portability for ActivityPub (0.2)

          favicon

          (swicg.github.io)

          mariusor@metalhead.clubM 1 Risposta Ultima Risposta Rispondi Cita 0
          • mariusor@metalhead.clubM Questo utente è esterno a questo forum
            mariusor@metalhead.club @evan@cosocial.ca
            ultima modifica di

            @evan I understand that, but at the same time, HTTP contains all we need to make sure these changes get tracked.

            1. Move activity is disseminated, so downstream instances are aware of the new ID.
            2. Instances/clients/user-agents making use of the old ID get redirected through HTTP to the new ID, and they get the new resource with only one extra request if that.

            Sounds simple to me, but maybe I'm overlooking something.

            mariusor@metalhead.clubM julian@community.nodebb.orgJ 2 Risposte Ultima Risposta Rispondi Cita 0
            • mariusor@metalhead.clubM Questo utente è esterno a questo forum
              mariusor@metalhead.club @mariusor@metalhead.club
              ultima modifica di

              @evan from what I can see the document you proposed handles the difficult cases where the move is done across servers.

              I'm thinking of something simpler, same instance move.

              1 Risposta Ultima Risposta Rispondi Cita 0
              • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                julian@community.nodebb.org @mariusor@metalhead.club
                ultima modifica di

                mariusor@metalhead.club yeah that's basically it, but as far as I know no servers support it.

                Mastodon, for example, will support an update that changes a user's preferred username, but on the backend a new user is created. Not quite ideal but they're hamstrung on some db decisions they made early on tying preferred username to the URL.

                1 Risposta Ultima Risposta Rispondi Cita 0
                • thisismissem@hachyderm.ioT Questo utente è esterno a questo forum
                  thisismissem@hachyderm.io @mariusor@metalhead.club
                  ultima modifica di

                  @mariusor yeah, there's an issue on w3c/activitypub about this, it's been there for few years I think? This is a problem with JSON-LD in general too

                  1 Risposta Ultima Risposta Rispondi Cita 0
                  • silverpill@mitra.socialS Questo utente è esterno a questo forum
                    silverpill@mitra.social @mariusor@metalhead.club
                    ultima modifica di

                    @mariusor Move is used for migrating actors from one ID to another: FEP-7628. It can be used for migrating objects too, but I don't think it's practical.

                    FEP-ef61 solves the problem by making identifiers portable.

                    julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
                    • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                      julian@community.nodebb.org @silverpill@mitra.social
                      ultima modifica di

                      silverpill@mitra.social mariusor@metalhead.club here's a dumb question... What happens when my software with no idea of the concept of nomadic identity, encounters an object with an ap:// protocol?

                      1 Risposta Ultima Risposta Rispondi Cita 0
                      • adiz@mtl.jinxian.casaA Questo utente è esterno a questo forum
                        adiz@mtl.jinxian.casa
                        ultima modifica di

                        @julian It dies. @silverpill @mariusor @evan

                        mariusor@metalhead.clubM 1 Risposta Ultima Risposta Rispondi Cita 0
                        • mariusor@metalhead.clubM Questo utente è esterno a questo forum
                          mariusor@metalhead.club @adiz@mtl.jinxian.casa
                          ultima modifica di

                          @adiz @julian I think the general behaviour is that your user-agent (client or browser) tries to find an application that can understand that protocol and delegate to the user if nothing is found.

                          @silverpill

                          1 Risposta Ultima Risposta Rispondi Cita 0
                          • silverpill@mitra.socialS Questo utente è esterno a questo forum
                            silverpill@mitra.social
                            ultima modifica di

                            @julian Hopefully nothing, the object is ignored. It may also crash :)

                            We use a different kind of identifier to keep portable objects compatible with ef61-unaware implementations:

                            https://social.example/.well-known/apgateway/did:example:abcd/object
                            

                            which works like a regular HTTPS URL, but ef61-aware implementations treat it as equivalent to ap://did:example:abcd/object

                            @mariusor

                            julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
                            • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                              julian@community.nodebb.org @silverpill@mitra.social
                              ultima modifica di

                              silverpill@mitra.social ah that's pretty clever!

                              1 Risposta Ultima Risposta Rispondi Cita 0
                              • Primo post
                                Ultimo post