Bug 2210326 - Fix rdoc parsing of nil text tokens
Summary: Fix rdoc parsing of nil text tokens
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ruby
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jarek Prokop
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-26 15:28 UTC by Todd Zullinger
Modified: 2023-08-09 15:43 UTC (History)
5 users (show)

Fixed In Version: ruby-2.5-8090020230627084142.b46abd14
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/rpms ruby merge_requests 15 0 None opened Fix rdoc parsing of nil text tokens (rhbz#2210326) 2023-05-26 15:37:41 UTC
Gitlab redhat/centos-stream/rpms ruby merge_requests 16 0 None merged Fix rdoc parsing of nil text tokens + backport moderate CVEs. 2023-07-10 07:30:38 UTC
Red Hat Issue Tracker RHELPLAN-158317 0 None None None 2023-05-26 15:31:27 UTC

Description Todd Zullinger 2023-05-26 15:28:05 UTC
With ruby < 2.6.0 / rdoc < 6.0.2, rdoc fails to parse valid ruby code, resulting in build failures.  An example is asciidoctor > 2.0.15 (though 2.0.20, currently)

While attempting to build asciidoctor-2.0.20 for Fedora and RHEL+EPEL releases, I ran into the following error on RHEL+EPEL 8:

    Installing ri documentation for asciidoctor-2.0.20
    Installing darkfish documentation for asciidoctor-2.0.20
    ERROR:  While executing gem ... (RDoc::Error)
        error generating Asciidoctor/Converter/ManPageConverter.html: no implicit conversion of nil into String (TypeError)

I have reported this upstream as well:

    https://github.com/asciidoctor/asciidoctor/issues/4462

I will submit a merge request to backport the small rdoc fix.

Comment 1 Jun Aruga 2023-05-29 10:13:13 UTC
Note the PR is <https://gitlab.com/redhat/centos-stream/rpms/ruby/-/merge_requests/15>.

Comment 6 Jarek Prokop 2023-07-10 07:30:39 UTC
Fix included with CVE backports in MR: https://gitlab.com/redhat/centos-stream/rpms/ruby/-/merge_requests/16


Note You need to log in before you can comment on or make changes to this bug.