data.zip

tag= doesn't work with records

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Ok

Description

clojure.data.zip.xml/tag= throws when given a record instead of a map, even if it has fields for tag, attrs, and content. Reason: tag= calls (node :tag) instead of (:tag node).

This was uncovered while trying to use data.zip with Ryan Senior's new data.xml, which produces Element records.

Patch with fix and test attached.

Activity

Aaron Bedra made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Approval Ok [ 10007 ]
Status Open [ 1 ] Resolved [ 5 ]

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: