mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #821] Bug: Crash during Pinboard RSS import #511
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#511
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @overhacked on GitHub (Aug 4, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/821
Describe the bug
Using the Pinboard RSS parser results in a crash due to an assertion in
index/schema.py. This assertion fails becauseparsers/pinboard_rss.pypasses aNonevalue as theurlproperty of theLinkobject.The
urlis set toNonebecause the return value ofitem.find()is coerced to aboolinpinboard_rss.py. The result of the coercion is alwaysFalse, because the<link>element does not have any child elements, which is the definition of__bool__()inElementTree.Element. In fact, the RSS 1.0 specification forbids any child elements of<link>.Steps to reproduce
curl -sSL 'https://feeds.pinboard.in/rss/u:maciej/' | archivebox add --parser=pinboard_rssScreenshots or log output
Backtrace
ArchiveBox version
Running
devbranch. Tested on commit3d54b13.@pirate commented on GitHub (Aug 4, 2021):
nice find, thanks!