Skip to content

Media URI truncates long URLs found in the wild as part of my learning #144

@gavinbeatty

Description

@gavinbeatty

Describe the bug
Media URI field truncates some long URLs found in the wild as part of my learning. Podcasts that have web players and CDNs often have very long URLs (e.g., 500 characters), but LWT truncates them (I'm guessing at 256 characters).

A limit like 2048 characters, or 1024 characters seems more appropriate, if limits must be in place.

To Reproduce
Steps to reproduce the behavior:

  1. Go to this podcast episode page
  2. Click on View Source in your browser
  3. Search for "m4a:" in the source
  4. Copy the long URL into Media URI on an Edit Text page in LWT
  5. The URL is truncated even before all the ?foo=bar&baz=bop URL options

Expected behavior
Expected long URLs such as in this example to work perfectly fine. In this case, the URL is about 500 characters.
Screenshots
N/A

Server (please complete)

  • OS Debian GNU/Linux 12 (bookworm)
  • LWT version v002008001
  • Database name lwt_db
  • Database prefix (surrounded by "") ""
  • Database Location nginx/1.22.1
  • Database Size 0.1 MB
  • Web Server REDACTED
  • Server Software Apache/?
  • PHP Version 8.2.7
  • MySQL Version 10.11.3-MariaDB-1

Desktop:

  • OS: Windows 10 Pro
  • Browser: Firefox
  • Version: 117.0.1

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseDatabase-related issuesenhancementDevelop an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions