G

jp crash when trying to edit blog from https link

when using https link with jp/blog/edit, it crashes. e.g.: % jp blog edit -cp goffi.org -- 'https://www.goffi.org/blog/goffi/9c1eccb5-9ad3-47bf-9cbd-065640337e2f' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 604, in msg_reply_handler reply_handler(message.get_args_list(*get_args_opts)) File "/home/goffi/lib/sat_frontends/jp/base.py", line 524, in <lambda> self.bridge.connect(self.profile, self.args.pwd, {}, lambda dummy: callback(), cant_connect) File "/home/goffi/lib/sat_frontends/jp/base.py", line 822, in connected self.start() File "/home/goffi/lib/sat_frontends/jp/cmd_blog.py", line 567, in start root = etree.parse(url, parser) File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:81117) File "src/lxml/parser.pxi", line 1811, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:117848) File "src/lxml/parser.pxi", line 1837, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:118195) File "src/lxml/parser.pxi", line 1741, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:117107) File "src/lxml/parser.pxi", line 1138, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:111653) File "src/lxml/parser.pxi", line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105109) File "src/lxml/parser.pxi", line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:106817) File "src/lxml/parser.pxi", line 633, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:105628) IOError: Error reading file 'https://www.goffi.org/blog/goffi/9c1eccb5-9ad3-47bf-9cbd-065640337e2f': failed to load external entity "https://www.goffi.org/blog/goffi/9c1eccb5-9ad3-47bf-9cbd-065640337e2f" It works OK with http link.

G

goffi 19/07/2019, 20:46

checked (with the new syntax and blog location: `jp blog edit -cp goffi.org -u 'https://www.goffi.org/b/9c1eccb5-9ad3-47bf-9cbd-065640337e2f'`), it's working fine now, closing.

id

195

author

Goffi

created

15/03/2017, 15:28

updated

19/07/2019, 20:46

labels
jp
type
bug
status
closed
priority
normal
milestone
0.7
severity
normal