Skip to content

Attachment URLs length limit #4044

@gbowsky

Description

@gbowsky

Describe the Bug

Hi there! Was trying to upload an url attachments in editor, but noticed some urls not working. Figured out there is 192 character limit according to end result after creating attachment.

Also can be reproduced via API.

Steps to Reproduce

  1. Create page in a book;
  2. Open attachments sidebar
  3. Open interface with link attachment creation;
  4. Attach link with length higher than 192;
  5. Check uploaded link's length - should be 192.

Expected Behaviour

According to the HTTP spec, there's no limit to URL's length, but is should be under 2048 characters.

Screenshots or Additional Context

No response

Browser Details

Chrome 109.0.5414.119 (arm64)

Exact BookStack Version

v22.11

PHP Version

PHP 8.1.13

Hosting Environment

Fedora home server (64-bit), Docker image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions