Bug 1095560 - Asciidoc import: Import process stalls if .adoc contains ::
Summary: Asciidoc import: Import process stalls if .adoc contains ::
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: ImportTool
Version: 1.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.6
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1091570 1092170
TreeView+ depends on / blocked
 
Reported: 2014-05-08 02:51 UTC by mmurray
Modified: 2014-08-04 22:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-28 21:56:22 UTC
Embargoed:


Attachments (Terms of Use)
Test case for '<term>::' stalling asciidoc import (2.10 KB, text/plain)
2014-05-08 23:39 UTC, mmurray
no flags Details

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.


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