Re: [Tools-discuss] Making online or Windows kramdown-rfc2629 work

"HANSEN, TONY L" <tony@att.com> Thu, 13 April 2017 17:31 UTC

Return-Path: <tony@att.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 49B9612E9A1 for <tools-discuss@ietfa.amsl.com>; Thu, 13 Apr 2017 10:31:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.399
X-Spam-Level:
X-Spam-Status: No, score=-5.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RdlaD3V2F9F8 for <tools-discuss@ietfa.amsl.com>; Thu, 13 Apr 2017 10:31:03 -0700 (PDT)
Received: from mx0a-00191d01.pphosted.com (mx0a-00191d01.pphosted.com [67.231.149.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 517BB12E85B for <Tools-discuss@ietf.org>; Thu, 13 Apr 2017 10:31:02 -0700 (PDT)
Received: from pps.filterd (m0049295.ppops.net [127.0.0.1]) by m0049295.ppops.net-00191d01. (8.16.0.17/8.16.0.17) with SMTP id v3DHPA4q044537; Thu, 13 Apr 2017 13:30:59 -0400
Received: from alpi155.enaf.aldc.att.com (sbcsmtp7.sbc.com [144.160.229.24]) by m0049295.ppops.net-00191d01. with ESMTP id 29taw180vk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Apr 2017 13:30:58 -0400
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id v3DHUuf4030809; Thu, 13 Apr 2017 13:30:57 -0400
Received: from mlpi409.sfdc.sbc.com (mlpi409.sfdc.sbc.com [130.9.128.241]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id v3DHUoFe030696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 13 Apr 2017 13:30:52 -0400
Received: from MISOUT7MSGHUBAB.ITServices.sbc.com (MISOUT7MSGHUBAB.itservices.sbc.com [130.9.129.146]) by mlpi409.sfdc.sbc.com (RSA Interceptor); Thu, 13 Apr 2017 17:30:43 GMT
Received: from MISOUT7MSGUSRCG.ITServices.sbc.com ([169.254.7.214]) by MISOUT7MSGHUBAB.ITServices.sbc.com ([130.9.129.146]) with mapi id 14.03.0319.002; Thu, 13 Apr 2017 13:30:43 -0400
From: "HANSEN, TONY L" <tony@att.com>
To: Carsten Bormann <cabo@tzi.org>, Mike Jones <Michael.Jones@microsoft.com>
CC: "Tools-discuss@ietf.org" <Tools-discuss@ietf.org>, Dick Hardt <dick.hardt@gmail.com>
Thread-Topic: [Tools-discuss] Making online or Windows kramdown-rfc2629 work
Thread-Index: AdK0bhVLYKF6VK2dQpyKLnjS3N5s4AAJ/gaA///E9ICAAAZJgA==
Date: Thu, 13 Apr 2017 17:30:42 +0000
Message-ID: <EB2153D5-C5C1-45B5-BA48-8612E9B3E320@att.com>
References: <CY4PR21MB05042CA476E8667513BFA1DFF5020@CY4PR21MB0504.namprd21.prod.outlook.com> <296743DD-FA73-42AD-BE2B-4AAEC72B17F4@tzi.org> <26803140-71EC-4A90-A8A6-53CD0E805D8F@att.com>
In-Reply-To: <26803140-71EC-4A90-A8A6-53CD0E805D8F@att.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.91.110.223]
Content-Type: multipart/alternative; boundary="_000_EB2153D5C5C145B5BA488612E9B3E320attcom_"
MIME-Version: 1.0
X-RSA-Inspected: yes
X-RSA-Classifications: public
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-13_11:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704130146
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/dM9fGSW3ulU62v2RLu7QhQaQprI>
Subject: Re: [Tools-discuss] Making online or Windows kramdown-rfc2629 work
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Apr 2017 17:31:07 -0000

Hmmm, there’s still a problem, but it’s evidently a permissions problem somewhere.

Tracking it down now.

                Tony

From: Tools-discuss <tools-discuss-bounces@ietf.org> on behalf of "HANSEN, TONY L" <tony@att.com>
Date: Thursday, April 13, 2017 at 1:08 PM
To: Carsten Bormann <cabo@tzi.org>, Mike Jones <Michael.Jones@microsoft.com>
Cc: Tools-discuss <Tools-discuss@ietf.org>, Dick Hardt <dick.hardt@gmail.com>
Subject: Re: [Tools-discuss] Making online or Windows kramdown-rfc2629 work

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.
Thanks for the error report.

Kramdown-rfc2629 was throwing an error:

/usr/local/bin/kramdown-rfc2629:23:in `load': /var/lib/gems/1.9.1/gems/kramdown-rfc2629-1.1.0/bin/kramdown-rfc2629:210: multiple assignment in conditional (SyntaxError)
                from /usr/local/bin/kramdown-rfc2629:23:in `<main>'

There must have been a fix put into kramdown-rfc2629 at some point, because doing a gem update fixed the problem.

Please try it again.

                Tony Hansen

PS. The error message wasn’t showing up anywhere; it wasn’t even in the apache logs. I’ll have to investigate why.

From: Tools-discuss <tools-discuss-bounces@ietf.org> on behalf of Carsten Bormann <cabo@tzi.org>
Date: Thursday, April 13, 2017 at 12:39 PM
To: Mike Jones <Michael.Jones@microsoft.com>
Cc: Tools-discuss <Tools-discuss@ietf.org>, Dick Hardt <dick.hardt@gmail.com>
Subject: Re: [Tools-discuss] Making online or Windows kramdown-rfc2629 work

There is a workaround for the openssl windows cert problem in https://github.com/cabo/kramdown-rfc2629/issues/30<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cabo_kramdown-2Drfc2629_issues_30&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=6YsbdsKggNHFNYDGW3Q532lqGYBVVsIoIJ7XG_CShSQ&e=> (yes, I know...).

I don't know what is wrong with the web service, though.

Sent from mobile

On 13. Apr 2017, at 17:54, Mike Jones <Michael.Jones@microsoft.com<mailto:Michael.Jones@microsoft.com>> wrote:

I’ve been trying to find a way to run kramdown-rfc2629 from my Windows laptop and failing.  This is what I got when I tried to compile a .md file that Yaron Sheffer wrote using the kramdown input option at https://xml2rfc.tools.ietf.org/experimental.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__xml2rfc.tools.ietf.org_experimental.html&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=gpPYfkCb61fNgJDS3bGlaJiO57tyemC9wzoMluiE08Q&e=>.
Unable to Validate File
WARNING: Parsing Error: no element found
ERROR: Unable to parse the XML document: INPUT
INPUT: Line 1: Document is empty
INPUT: Line 1: Start tag expected, '<' not found
Using XML_LIBRARY=/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml2:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml3:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml4:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml5:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml6:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml7:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml8<https://urldefense.proofpoint.com/v2/url?u=http-3A__tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml2-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml3-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml4-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml5-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml6-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml7-3A_home_www_tools.ietf.org_tools_xml2rfc_web_public_rfc_bibxml8&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=tFjkJ7_cqQhNM0gdzYkZcHZZv3mP8e7oZDxcf2Kp-wE&e=>
Parsing file INPUT
________________________________
Apache/2.2.22 (Debian) Server at xml2rfc.tools.ietf.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__xml2rfc.tools.ietf.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=L8PWOLGM_7wXYnsbKES-AbwGjmqV4IC0WI9m6RSG0ew&e=> Port 443

durif


Is there a trick I’m missing here?  I’d really prefer to compile the .md online than have to do local tool installations on all my machines.

I then tried to use a local Ruby installation.  I installed 64-bit Ruby 2.3.3.  I did the “gem install kramdown-rfc2629”.  I then ran “kramdown-rfc2629 \mbj\tmp\draft-sheffer-oauth-jwt-bcp.md > \mbj\tmp\draft-sheffer-oauth-jwt-bcp.xml”, which resulted in a zero-length .xml file and the following log output.  Any suggestions on next steps?

.refcache/reference.RFC.2119.xml: fetching
C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect'
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:852:in `start'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:717:in `open'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:35:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:447:in `block in get_and_cache_resource'
        from C:/Ruby23-x64/lib/ruby/2.3.0/timeout.rb:91:in `block in timeout'
        from C:/Ruby23-x64/lib/ruby/2.3.0/timeout.rb:33:in `block in catch'
        from C:/Ruby23-x64/lib/ruby/2.3.0/timeout.rb:33:in `catch'
        from C:/Ruby23-x64/lib/ruby/2.3.0/timeout.rb:33:in `catch'
        from C:/Ruby23-x64/lib/ruby/2.3.0/timeout.rb:106:in `timeout'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:442:in `get_and_cache_resource'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:518:in `block in convert_img'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:512:in `scan'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:512:in `convert_img'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:125:in `block in inner_a'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:123:in `map'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:123:in `inner_a'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:130:in `inner'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:143:in `convert_p'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:125:in `block in inner_a'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:123:in `map'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:123:in `inner_a'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:130:in `inner'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:652:in `convert_root'        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:118:in `convert1'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/lib/kramdown-rfc2629.rb:113:in `convert'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-1.13.2/lib/kramdown/converter/base.rb:105:in `convert'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-1.13.2/lib/kramdown/document.rb:120:in `method_missing'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/kramdown-rfc2629-1.1.1/bin/kramdown-rfc2629:279:in `<top (required)>'
        from C:/Ruby23-x64/bin/kramdown-rfc2629:22:in `load'
        from C:/Ruby23-x64/bin/kramdown-rfc2629:22:in `<main>'

Has anyone gotten this to work online or on Windows?

                                                                -- Mike

--
Tools-discuss mailing list
Tools-discuss@ietf.org<mailto:Tools-discuss@ietf.org>
https://www.ietf.org/mailman/listinfo/tools-discuss<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_tools-2Ddiscuss&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=1TrzavQLO_hCgJQJz08q7viNSL2SffV6dN2UI6oa-L4&e=>

Please report datatracker.ietf.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__datatracker.ietf.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=TtQIQEtt-16GfjvmXYm5rvLlahKg72Dk-fDZ_ZGU8MU&e=> bugs at http://tools.ietf.org/tools/ietfdb<https://urldefense.proofpoint.com/v2/url?u=http-3A__tools.ietf.org_tools_ietfdb&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=Nemm1JpXctopkZbK7NvKUPlHsyL-8hbuXo42ZTvqYWQ&e=>
or send email to datatracker-project@ietf.org<mailto:datatracker-project@ietf.org>

Please report tools.ietf.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__tools.ietf.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=QXizYxDmoRe350ceRy2GpgFMoQC4kQqXsNh6Azz9c1A&e=> bugs at http://tools.ietf.org/tools/issues<https://urldefense.proofpoint.com/v2/url?u=http-3A__tools.ietf.org_tools_issues&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=GMwQIeRVQJg_oGi4TolqsXlxHS2-FluXhD8RYljyfR0&s=sw3swpCuyEXeHOjEz6TTBy4gzMab5oSce-YAjDi98ls&e=> or
send email to webmaster@tools.ietf.org<mailto:webmaster@tools.ietf.org>