[GH-ISSUE #1688] Bug: URL Length seems to be limited to 200 characters #2519

Open
opened 2026-03-01 17:59:35 +03:00 by kerem · 2 comments
Owner

Originally created by @mapleshadow on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1688

Originally assigned to: @pirate on GitHub.

Provide a screenshot and describe the bug

I've seen users raise this issue before, but it was merged. It shouldn't be merged; this is a separate error. On the project editing interface, if the URL length exceeds 200 characters, the edited content cannot be saved. Therefore, this error must be corrected, and the URL length should not be limited.

Image

Steps to reproduce

1.edit this snapshot in the Admin UI
2.url Change
3.Tip: If the length exceeds 200, it will not be saved.

Logs or errors


ArchiveBox Version

0.7.3

How did you install the version of ArchiveBox you are using?

Docker (or Podman/LXC/K8s/TrueNAS/Proxmox/etc)

What operating system are you running on?

Linux (Ubuntu/Debian/Arch/Alpine/etc.)

What type of drive are you using to store your ArchiveBox data?

  • some of data/ is on a local SSD or NVMe drive
  • some of data/ is on a spinning hard drive or external USB drive
  • some of data/ is on a network mount (e.g. NFS/SMB/Ceph/GlusterFS/etc.)
  • some of data/ is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/Google Drive/Dropbox/etc.)

Docker Compose Configuration


ArchiveBox Configuration


Originally created by @mapleshadow on GitHub (Jul 16, 2025). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1688 Originally assigned to: @pirate on GitHub. ### Provide a screenshot and describe the bug I've seen users raise this issue before, but it was merged. It shouldn't be merged; this is a separate error. On the project editing interface, if the URL length exceeds 200 characters, the edited content cannot be saved. Therefore, this error must be corrected, and the URL length should not be limited. <img width="976" height="342" alt="Image" src="https://github.com/user-attachments/assets/f3f16dc5-0893-44c5-bc78-919beda1089b" /> ### Steps to reproduce ```markdown 1.edit this snapshot in the Admin UI 2.url Change 3.Tip: If the length exceeds 200, it will not be saved. ``` ### Logs or errors ```shell ``` ### ArchiveBox Version ```shell 0.7.3 ``` ### How did you install the version of ArchiveBox you are using? Docker (or Podman/LXC/K8s/TrueNAS/Proxmox/etc) ### What operating system are you running on? Linux (Ubuntu/Debian/Arch/Alpine/etc.) ### What type of drive are you using to store your ArchiveBox data? - [ ] some of `data/` is on a local SSD or NVMe drive - [ ] some of `data/` is on a spinning hard drive or external USB drive - [ ] some of `data/` is on a network mount (e.g. NFS/SMB/Ceph/GlusterFS/etc.) - [ ] some of `data/` is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/Google Drive/Dropbox/etc.) ### Docker Compose Configuration ```shell ``` ### ArchiveBox Configuration ```shell ```
Author
Owner

@pirate commented on GitHub (Dec 29, 2025):

@claude can you fix this on dev, lets cap url length at 1600 for now

<!-- gh-comment-id:3697652401 --> @pirate commented on GitHub (Dec 29, 2025): @claude can you fix this on dev, lets cap url length at 1600 for now
Author
Owner

@claude[bot] commented on GitHub (Dec 29, 2025):

Claude finished @pirate's task in 2m 30s —— View jobclaude/issue-1688-20251229-2233Create PR ➔


URL length limit fix complete ✓

Task: Increase URL field length limit from 200 to 1600 characters on dev branch.

Tasks

  • Gather context: Find URL field definitions in models
  • Update URL field max_length to 1600
  • Create Django migrations
  • Commit and push changes
  • Provide PR creation link

Changes Made

Model Update

  • Updated Snapshot.url field in archivebox/core/models.py:284 to include max_length=1600
  • Previously, URLField defaulted to max_length=200, which prevented saving URLs longer than 200 characters in the Admin UI

Migration

  • Created archivebox/core/migrations/0025_alter_snapshot_url_max_length.py
  • Uses Django's AlterField operation to update the field definition
  • This migration will be applied automatically when users run archivebox init or migrations

Testing Notes

The fix addresses the issue where URLs exceeding 200 characters could not be saved in the Admin UI. With the new 1600 character limit, users should be able to save much longer URLs (typical long URLs with query parameters, tracking codes, etc. should fit comfortably).

Note: SQLite (the default database) stores TEXT fields without strict length enforcement at the database level, but Django enforces the max_length constraint at the model/form level, which is where the 200-character limitation was causing the issue.


| Branch

<!-- gh-comment-id:3697679138 --> @claude[bot] commented on GitHub (Dec 29, 2025): **Claude finished @pirate's task in 2m 30s** —— [View job](https://github.com/ArchiveBox/ArchiveBox/actions/runs/20583888204) • [`claude/issue-1688-20251229-2233`](https://github.com/ArchiveBox/ArchiveBox/tree/claude/issue-1688-20251229-2233) • [Create PR ➔](https://github.com/ArchiveBox/ArchiveBox/compare/dev...claude/issue-1688-20251229-2233?quick_pull=1&title=Fix%3A%20Increase%20Snapshot%20URL%20max_length%20to%201600%20characters&body=Fixes%20%231688%0A%0AIncreases%20the%20Snapshot.url%20field%20max_length%20from%20200%20to%201600%20characters%20to%20allow%20saving%20longer%20URLs%20in%20the%20Admin%20UI.%0A%0A%23%23%23%20Changes%0A-%20Updated%20Snapshot.url%20field%20in%20archivebox%2Fcore%2Fmodels.py%20to%20max_length%3D1600%0A-%20Created%20migration%200025_alter_snapshot_url_max_length.py%0A%0AGenerated%20with%20%5BClaude%20Code%5D%28https%3A%2F%2Fclaude.ai%2Fcode%29) --- ### URL length limit fix complete ✓ Task: Increase URL field length limit from 200 to 1600 characters on dev branch. #### Tasks - [x] Gather context: Find URL field definitions in models - [x] Update URL field max_length to 1600 - [x] Create Django migrations - [x] Commit and push changes - [x] Provide PR creation link #### Changes Made **Model Update** - Updated `Snapshot.url` field in `archivebox/core/models.py:284` to include `max_length=1600` - Previously, URLField defaulted to max_length=200, which prevented saving URLs longer than 200 characters in the Admin UI **Migration** - Created `archivebox/core/migrations/0025_alter_snapshot_url_max_length.py` - Uses Django's `AlterField` operation to update the field definition - This migration will be applied automatically when users run `archivebox init` or migrations #### Testing Notes The fix addresses the issue where URLs exceeding 200 characters could not be saved in the Admin UI. With the new 1600 character limit, users should be able to save much longer URLs (typical long URLs with query parameters, tracking codes, etc. should fit comfortably). Note: SQLite (the default database) stores TEXT fields without strict length enforcement at the database level, but Django enforces the max_length constraint at the model/form level, which is where the 200-character limitation was causing the issue. --- | [Branch](https://github.com/ArchiveBox/ArchiveBox/tree/claude/issue-1688-20251229-2233)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2519
No description provided.