https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • i

    Ishh

    02/20/2023, 2:36 PM
    Yh. But that channel is inactive and this is.
  • k

    kian

    02/20/2023, 2:36 PM
    It's a search param
  • i

    itsmatteomanf

    02/20/2023, 2:36 PM
    Oh, I thought in the response.
  • k

    kian

    02/20/2023, 2:37 PM
    Ignore me, it's
    max-keys
    for the URL
  • k

    kian

    02/20/2023, 2:37 PM
    S3 don't error, they just no-op
  • k

    kian

    02/20/2023, 2:37 PM
    🥴
  • i

    itsmatteomanf

    02/20/2023, 2:37 PM
    Why do things how you are supposed to do them, just fail successfully.
  • s

    Sid | R2

    02/20/2023, 2:41 PM
    kian with the S3-assist as always. I can push out a release tomorrow to see if returning an empty
    Marker
    /
    Prefix
    when they don't exist, fixes the problem.
  • k

    kian

    02/20/2023, 2:42 PM
    I guess
    KeyCount
    could also throw them off if they have some weird 'schema' checking
  • k

    kian

    02/20/2023, 2:42 PM
    but anyone who does that with the horrible mess that is S3 which doesn't follow their own docs, shudder
  • i

    itsmatteomanf

    02/20/2023, 2:42 PM
    If you need sample reqs let me know, I have a job set-up which I can start in seconds.
  • i

    itsmatteomanf

    02/20/2023, 2:43 PM
    My account is also pretty tame with R2 reqs, so little to parse except these.
  • s

    Sid | R2

    02/20/2023, 2:43 PM
    Alright, KeyCount is gone as well now.
  • s

    Sid | R2

    02/20/2023, 2:43 PM
    I'll let you know when this goes out!
  • k

    kian

    02/20/2023, 2:43 PM
    the worst bug in the past was empty directories didn't appear as a commonprefix so some backup app was creating a folder and then being unable to see it again or something
  • k

    kian

    02/20/2023, 2:43 PM
    but Vitali fixed that a loooooong time ago
  • k

    kian

    02/20/2023, 2:44 PM
    I played around with markers/truncation/etc and R2/S3 seemed to match up
  • k

    kian

    02/20/2023, 2:45 PM
    oh
  • k

    kian

    02/20/2023, 2:45 PM
    it was also Synology Hyper Backup lol
  • k

    kian

    02/20/2023, 2:45 PM
    https://discord.com/channels/595317990191398933/940663374377783388/984886317999611904
  • k

    kian

    02/20/2023, 2:45 PM
    https://discord.com/channels/595317990191398933/940663374377783388/984110942822477855
  • k

    kian

    02/20/2023, 2:48 PM
    out of curiousity I'm going to try that case
  • k

    kian

    02/20/2023, 2:49 PM
    hmm
  • k

    kian

    02/20/2023, 2:49 PM
    R2 does appear to differ from S3 in that case again
  • k

    kian

    02/20/2023, 2:49 PM
  • k

    kian

    02/20/2023, 2:49 PM
    Copy code
    xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
        <Name>sdk-example-kian</Name>
        <Prefix>folder/emptyfolder/</Prefix>
        <Marker></Marker>
        <MaxKeys>1000</MaxKeys>
        <Delimiter>/</Delimiter>
        <IsTruncated>false</IsTruncated>
        <Contents>
            <Key>folder/emptyfolder/</Key>
            <LastModified>2022-06-10T18:54:00.000Z</LastModified>
            <ETag>"d41d8cd98f00b204e9800998ecf8427e"</ETag>
            <Size>0</Size>
            <Owner>
                <ID>f94df3e5b54807469361f124fa426391ee142b500b07b3cc1113ff388e099f4c</ID>
            </Owner>
            <StorageClass>STANDARD</StorageClass>
        </Contents>
    </ListBucketResult>
    S3
  • k

    kian

    02/20/2023, 2:50 PM
    Copy code
    xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
        <Name>sdk-example</Name>
        <IsTruncated>false</IsTruncated>
        <Prefix>folder/emptyfolder/</Prefix>
        <Delimiter>/</Delimiter>
        <MaxKeys>1000</MaxKeys>
        <KeyCount>0</KeyCount>
    </ListBucketResult>
    R2
  • k

    kian

    02/20/2023, 2:50 PM
    Vitali did make a test case for it but that was for ListObjects V2
  • k

    kian

    02/20/2023, 2:50 PM
    Maybe it's fine in V2 and still broken in V1?
  • k

    kian

    02/20/2023, 2:50 PM
1...886887888...1050Latest