Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Uncategorized
  3. Today I discovered an interesting inconsistency in Activity Streams specs while investigating [a Fedify issue].
Welcome to Caint!

Issues? Post in Comments & Feedback
You can now view, reply, and favourite posts from the Fediverse. You can click here or click on the on the navigation bar on the left.

Today I discovered an interesting inconsistency in Activity Streams specs while investigating [a Fedify issue].

Scheduled Pinned Locked Moved Uncategorized
fedifyfedidevactivitypubspecificationsactivitystreams
25 Posts 6 Posters 3 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • infinite love ⴳT infinite love ⴳ

    @mariusor it's perfectly practical to serve what the requester asked for. it's not very practical to serve something they *didn't* ask for, instead of the thing they asked for.

    any http server is capable of this. maybe they use query strings, maybe they don't. there are defaults in any case.

    i mean, you probably encounter a cdn serving images like this multiple times every day, without even realizing it.

    mariusM This user is from outside of this forum
    mariusM This user is from outside of this forum
    marius
    wrote last edited by
    #21

    @trwnh I'm starting to feel you just like being contrarian.

    I just said I serve what requesters ask for because my service employs content-negotiation. So if they ask for an image they get an image and if they ask for a document they get a document.

    infinite love ⴳT 1 Reply Last reply
    1
    0
    • mariusM marius

      @trwnh I'm starting to feel you just like being contrarian.

      I just said I serve what requesters ask for because my service employs content-negotiation. So if they ask for an image they get an image and if they ask for a document they get a document.

      infinite love ⴳT This user is from outside of this forum
      infinite love ⴳT This user is from outside of this forum
      infinite love ⴳ
      wrote last edited by
      #22

      @mariusor no, i'm just trying to reach a mutual understanding.

      content negotiation is fine if you are serving the same information for the same identifier. you have this idea of images being documents, people being documents, etc., and i have the idea that the representations are not the thing itself.

      take for example the very popular and common pattern of doing something like this:

      /image
      /image.avif
      /image?width=600
      /image/thumbnail
      /image@2x

      these might all be "the same image" at the end.

      infinite love ⴳT 1 Reply Last reply
      1
      0
      • infinite love ⴳT infinite love ⴳ

        @mariusor no, i'm just trying to reach a mutual understanding.

        content negotiation is fine if you are serving the same information for the same identifier. you have this idea of images being documents, people being documents, etc., and i have the idea that the representations are not the thing itself.

        take for example the very popular and common pattern of doing something like this:

        /image
        /image.avif
        /image?width=600
        /image/thumbnail
        /image@2x

        these might all be "the same image" at the end.

        infinite love ⴳT This user is from outside of this forum
        infinite love ⴳT This user is from outside of this forum
        infinite love ⴳ
        wrote last edited by
        #23

        @mariusor again, this isn't theoretical, there are plenty of web servers doing exactly this.

        you can find services of this sort all over the place:

        https://placehold.co/

        https://picsum.photos/

        and many widely-used softwares as well:

        https://www.contentful.com/developers/docs/references/images-api/

        https://github.com/imgproxy/imgproxy

        infinite love ⴳT 1 Reply Last reply
        1
        0
        • infinite love ⴳT infinite love ⴳ

          @mariusor again, this isn't theoretical, there are plenty of web servers doing exactly this.

          you can find services of this sort all over the place:

          https://placehold.co/

          https://picsum.photos/

          and many widely-used softwares as well:

          https://www.contentful.com/developers/docs/references/images-api/

          https://github.com/imgproxy/imgproxy

          infinite love ⴳT This user is from outside of this forum
          infinite love ⴳT This user is from outside of this forum
          infinite love ⴳ
          wrote last edited by
          #24

          @mariusor the problem (for others) is that when you use the same URI to refer to different things, you can no longer distinguish between them. it's why the naive approach is to just use file extensions -- less ambiguity. you can trade content negotiation for explicit identification ahead-of-time. but it's quite tenuous to say that foo.jsonld and foo.png are "the same" in any meaningful sense. one is a description of an image, the other is a representation of the image. neither are the real thing

          mariusM 1 Reply Last reply
          1
          0
          • infinite love ⴳT infinite love ⴳ

            @mariusor the problem (for others) is that when you use the same URI to refer to different things, you can no longer distinguish between them. it's why the naive approach is to just use file extensions -- less ambiguity. you can trade content negotiation for explicit identification ahead-of-time. but it's quite tenuous to say that foo.jsonld and foo.png are "the same" in any meaningful sense. one is a description of an image, the other is a representation of the image. neither are the real thing

            mariusM This user is from outside of this forum
            mariusM This user is from outside of this forum
            marius
            wrote last edited by
            #25

            @trwnh who are these "others" that have issues with content negotiation?

            The target for my software - this particular one I gave the icon example from - are browsers. And in a browser this content negotiation works perfectly fine, have a look see -> https://releases.bruta.link

            Can you see the icon? You can. Can you open the icon in the browser in a new tab and still see it. Yes you can. Can you use curl on the icon URL, yes, and as it defaults to json, you get the JSON-LD representation. I think that's good enough for me. I accept that it's not for you and wish you good luck with the software that you're developing. I'll stop engaging now.

            1 Reply Last reply
            1
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • All Topics
            • Popular
            • World
            • Users
            • Groups