Bug 1095560

Summary: Asciidoc import: Import process stalls if .adoc contains ::
Product: [Community] PressGang CCMS Reporter: mmurray
Component: ImportToolAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.6CC: cbredesen, lnewson, mcaspers
Target Milestone: ---   
Target Release: 1.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-28 21:56:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1091570, 1092170    
Attachments:
Description Flags
Test case for '<term>::' stalling asciidoc import none

Description mmurray 2014-05-08 02:51:42 UTC
Description of problem:
:: is used in asciidoc for labelled multiline. So,
term::
definition

Perhaps in docbook this might be considered equivalent to variablelist
<variablelist>
<varlistentry>
<term></term>
<listitem><para>
<varlistentry>
</variablelist>

My .adoc file have this :: in it (in my case it was a docbook variable list that got converted to asciidoc).


During the import process, I select the .adoc file which has :: in it and click Next. Nothing visible happens on the import page. Something is happening on my computer as eventually the fan ramps up so it must be using the processor pretty hard. In the end i close the browser tab to stop the process.

When the file is edited/cut down to remove the ::, the import tool works as expected, moving onto the next page of the import wizard.

Comment 1 mmurray 2014-05-08 04:24:08 UTC
http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#lists
^ states :: for list of terms

but

http://powerman.name/doc/asciidoc
^ under Lists states ;; for list of terms

The later imports into PG with no issues, and formats as docbook variable list. So there is a work around. Not sure if the first website is wrong or old or ...?

Comment 2 Matthew Casperson 2014-05-08 20:50:24 UTC
Can you please attach a copy of the ascidoc that causes issues. There is a chance that we'll have to work upstream to get it resolved.

Comment 3 mmurray 2014-05-08 23:39:36 UTC
Created attachment 893820 [details]
Test case for '<term>::' stalling asciidoc import

Comment 4 Matthew Casperson 2014-05-18 20:38:41 UTC
https://googledrive.com/host/0B6cpJDiEKC62cndwWkNmNmVqbE0/test.html has been updated with asciidoctor.js 1.5.0 preview 7. It appears to convert the attached asciidoc without error.

Comment 5 Matthew Casperson 2014-05-18 22:14:17 UTC
Fixed in Build 1.6-SNAPSHOT 201405190812

It is now possible to import the attached ascidoc file. However, it does not produce valid DocBook because of a bug with the upstream Asciidoctor project. This has been logged at https://github.com/asciidoctor/asciidoctor/issues/956.

Comment 7 Lee Newson 2014-05-22 01:00:34 UTC
Verified that asciidoc files that use the "::" syntax no longer freeze the import process and are converted correctly with the exception of the upstream bug Matt mentioned above.