Project

General

Profile

Actions

Bug #13531

closed

RSS: a feed with empty channel description has completely empty '#to_xml' conversion

Added by mala (stefano frabetti) almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux
[ruby-core:80962]

Description

With the rss standard library, a feed with empty channel description is correctly parsed, but its conversion to xml (#to_xml) results in an empty string.

(The expected result being a string representation of the full xml tree of the feed.)

A feed showing the problem (as of today) is at http://www.giornalettismo.com/feed/. It is valid, checked with the W3C validator.


Files

bug-rss-toxml (250 Bytes) bug-rss-toxml Script reproducing the bug mala (stefano frabetti), 05/01/2017 05:25 PM

Updated by kou (Kouhei Sutou) almost 7 years ago

  • Status changed from Open to Assigned
  • Assignee set to kou (Kouhei Sutou)

Thanks for your report.
I'll consider how rss handles the case. I'll change rss to accept empty <description>. I must keep backward compatibility.

Actions #2

Updated by kou (Kouhei Sutou) almost 7 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r58552.


rss: Accept empty text element as valid element

Parser has been accepted it but XML serializer wasn't accepted.

Reported by stefano frabetti. Thanks!!!

[ruby-core:80965] [Bug #13531]

Actions #3

Updated by usa (Usaku NAKAMURA) almost 7 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: WONTFIX, 2.3: REQUIRED, 2.4: REQUIRED

Updated by usa (Usaku NAKAMURA) almost 7 years ago

  • Backport changed from 2.2: WONTFIX, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED

ruby_2_3 r59236 merged revision(s) 58552.

Updated by nagachika (Tomoyuki Chikanaga) almost 7 years ago

  • Backport changed from 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: DONE

ruby_2_4 r59396 merged revision(s) 58552.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0