[GH-ISSUE #421] Bugfix: All tags automatic delete after add a new URL #281

Closed
opened 2026-03-01 14:42:05 +03:00 by kerem · 2 comments
Owner

Originally created by @imlonghao on GitHub (Aug 3, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/421

Describe the bug

I added some URL via the web interface, then I manually added tags for some of them.
After that, I add a new URL, then, all tags disappear.

Steps to reproduce

  1. Setup ArchiveBox environment via Docker
  2. Add a URL
  3. Add tag to the URL
  4. Add another URL
  5. Tags disappear.

Software versions

  • OS: ArchLinux
  • ArchiveBox version: v0.4.9 (Docker Version)
  • Python version: 3.8.5
  • Chrome version: 84.0.4147.105
Originally created by @imlonghao on GitHub (Aug 3, 2020). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/421 #### Describe the bug I added some URL via the web interface, then I manually added tags for some of them. After that, I add a new URL, then, all tags disappear. #### Steps to reproduce 1. Setup ArchiveBox environment via Docker 2. Add a URL 3. Add tag to the URL 4. Add another URL 5. Tags disappear. #### Software versions - OS: ArchLinux - ArchiveBox version: v0.4.9 (Docker Version) - Python version: 3.8.5 - Chrome version: 84.0.4147.105
kerem 2026-03-01 14:42:05 +03:00
Author
Owner

@pirate commented on GitHub (Aug 3, 2020):

Ah this is because the UI only saves the tags to the SQLite db, and not to the main index.json. We're going to remove the index.json anyway in the next version, so rather than fix this bug by adding 20+ lines of workaround code, I think we'll probably just leave it broken until the next version when it becomes irrelevant.

For now I recommend adding your tags before you import the URLs, or don't use tags until v0.5. Sorry for the trouble.

<!-- gh-comment-id:668160964 --> @pirate commented on GitHub (Aug 3, 2020): Ah this is because the UI only saves the tags to the SQLite db, and not to the main index.json. We're going to remove the index.json anyway in the next version, so rather than fix this bug by adding 20+ lines of workaround code, I think we'll probably just leave it broken until the next version when it becomes irrelevant. For now I recommend adding your tags before you import the URLs, or don't use tags until v0.5. Sorry for the trouble.
Author
Owner

@pirate commented on GitHub (Apr 6, 2021):

This is fixed in the latest versions. Comment back if you still have any troubles and I'll reopen it.

<!-- gh-comment-id:813854758 --> @pirate commented on GitHub (Apr 6, 2021): This is fixed in the latest versions. Comment back if you still have any troubles and I'll reopen it.
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#281
No description provided.