Skip to content

500 error returned when shortening website with title in Japanese #2564

@ycy-0510

Description

@ycy-0510

Shlink version

stable

PHP version

4.4.14

How do you serve Shlink

Docker image

Database engine

PostgreSQL

Database version

lastest

Current behavior

When attempting to shorten the URL https://web.archive.org/web/20000511004038/http://www.nsc.gov.tw/, the API/UI responds with an Internal Server Error. Following this error, the "Recent Short URLs" list on the dashboard becomes unresponsive and fails to query, rendering the recent list view unusable.

Expected behavior

The system should correctly process and shorten valid URLs containing nested schemes (like Wayback Machine links). If this specific format cannot be supported, the application must validate and reject the input before attempting to write to the database. This would prevent the Internal Server Error and ensure the dashboard remains functional instead of breaking the "Recent Short URLs" query.

Minimum steps to reproduce

  1. Attempt to create a short URL for the target: https://web.archive.org/web/20000511004038/http://www.nsc.gov.tw/

  2. Observe that the request fails with an Internal Server Error.

  3. Navigate to the Shlink Dashboard (or refresh the page).

  4. Attempt to load the "Recent Short URLs" list.

  5. Observe that the list fails to query and cannot be displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions