Skip to content

librdkafka++1 Debian/Ubuntu package downloads fail with "NoSuchKeyError" due to missing URL encoding/decoding for plus signs #5291

@graskovi

Description

Description

When attempting to download the debian packages for librdkafka++1 from packages.confluent.io/clients/.../librdkafka instead of downloading the .deb file it redirects to an error page:

Image

How to reproduce

  1. Go to librdkafka packages page
  2. Click on any link prefixed with "librdkafka++1", or to see exact match for screenshot above go to librdkafka++1_2.10.1
  3. Note: a workaround is to take the URL that isn't working and manually encode each "+" character to "%2b", as the following link works and is identical except for the "+" characters getting replaced with "%2b": packages.confluent.io/clients/deb/pool/main/libr/librdkafka/librdkafka%2b%2b1_2.10.1-1.cflt~ubu22_amd64.deb

Broken (the 2 "+" characters are converted to a single space inside the Key tag/block):
https://packages.confluent.io/clients/deb/pool/main/libr/librdkafka/librdkafka++1_1.5.2-1.cflt~deb10_amd64.deb
Works:
https://packages.confluent.io/clients/deb/pool/main/libr/librdkafka/librdkafka%2b%2b1_1.5.2-1.cflt~deb10_amd64.deb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions