[Cxml-devel] bug in dtd lookup when when xml path contains a space?

Attila Lendvai attila.lendvai at gmail.com
Wed Nov 26 20:40:49 UTC 2014


please see the logs here:

http://report.quicklisp.org/2014-11-26-space/failure-report/cl-l10n.html

(the relevant part is attached if that link would disappear)

after a cursory look it seems to me that when the dtd path is computed
then the file:// url is used, but it contains a %20 escaping, which
then somehow reaches CL:OPEN.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“As long as habit and routine dictate the pattern of living, new
dimensions of the soul will not emerge.”
	— Henry Van Dyke (1852–1933)
-------------- next part --------------
Unhandled SB-INT:SIMPLE-FILE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING {10049CF5A3}>: error opening #P"/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/dtd/ldml.dtd": No such file or directory

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10049CF5A3}>
0: ((LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX))
1: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {1005F3EDFB}>)
2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {1005F3EDCB}>)
3: (SB-DEBUG:PRINT-BACKTRACE :STREAM #<SB-SYS:FD-STREAM for "file /home/quicklisp/quicklisp-controller/tmp/depcheck-fail.txt" {10116B8003}> :START 0 :FROM :INTERRUPTED-FRAME :COUNT NIL :PRINT-THREAD T :PRINT-FRAME-SOURCE NIL :METHOD-FRAME-STYLE NIL)
4: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SB-INT:SIMPLE-FILE-ERROR "~@<~?: ~2I~_~A~:>" {1005F27A23}> #<unavailable argument>)
5: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* #<SB-INT:SIMPLE-FILE-ERROR "~@<~?: ~2I~_~A~:>" {1005F27A23}>)
6: (INVOKE-DEBUGGER #<SB-INT:SIMPLE-FILE-ERROR "~@<~?: ~2I~_~A~:>" {1005F27A23}>)
7: (ERROR SB-INT:SIMPLE-FILE-ERROR :PATHNAME #P"/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/dtd/ldml.dtd" :FORMAT-CONTROL "~@<~?: ~2I~_~A~:>" :FORMAT-ARGUMENTS ("error opening ~S" (#P"/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/dtd/ldml.dtd") "No such file or directory"))
8: (SB-IMPL::SIMPLE-FILE-PERROR "error opening ~S" #P"/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/dtd/ldml.dtd" 2)
9: ((FLET SB-IMPL::VANILLA-OPEN-ERROR :IN OPEN))
10: (OPEN #P"/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/dtd/ldml.dtd" :DIRECTION :INPUT :ELEMENT-TYPE (UNSIGNED-BYTE 8) :IF-EXISTS NIL :IF-DOES-NOT-EXIST NIL :EXTERNAL-FORMAT :DEFAULT)
11: (CXML::XSTREAM-OPEN-EXTID* CLDR-ENTITY-RESOLVER NIL #<PURI:URI file://+/home/quicklisp/quicklisp-controller/space%2520dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/dtd/ldml.dtd>)
12: (CXML::P/DOCTYPE-DECL #S(CXML::ZSTREAM :TOKEN-CATEGORY NIL :TOKEN-SEMANTIC NIL :INPUT-STACK (#<RUNES:XSTREAM [main document :MAIN file://+/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/main/root.xml]>)) NIL)
13: (CXML::P/DOCUMENT #S(CXML::ZSTREAM :TOKEN-CATEGORY NIL :TOKEN-SEMANTIC NIL :INPUT-STACK (#<RUNES:XSTREAM [main document :MAIN file://+/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/main/root.xml]>)) #<CLDR-PARSER {100532F083}> :VALIDATE NIL :DTD NIL :ROOT NIL :ENTITY-RESOLVER CLDR-ENTITY-RESOLVER :DISALLOW-INTERNAL-SUBSET NIL :RECODE T)
14: ((LAMBDA (CXML::ZSTREAM) :IN CXML::PARSE-XSTREAM) #S(CXML::ZSTREAM :TOKEN-CATEGORY NIL :TOKEN-SEMANTIC NIL :INPUT-STACK (#<RUNES:XSTREAM [main document :MAIN file://+/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/main/root.xml]>)))
15: (CXML::CALL-WITH-ZSTREAM #<CLOSURE (LAMBDA (CXML::ZSTREAM) :IN CXML::PARSE-XSTREAM) {10054CBE3B}> #S(CXML::ZSTREAM :TOKEN-CATEGORY NIL :TOKEN-SEMANTIC NIL :INPUT-STACK (#<RUNES:XSTREAM [main document :MAIN file://+/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/main/root.xml]>)))
16: (CXML::PARSE-XSTREAM #<RUNES:XSTREAM [main document :MAIN file://+/home/quicklisp/quicklisp-controller/space%20dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/main/root.xml]> #<CLDR-PARSER {100532F083}> :ENTITY-RESOLVER CLDR-ENTITY-RESOLVER)
17: (CXML::CALL-WITH-OPEN-XFILE #<CLOSURE (LAMBDA (CXML::INPUT) :IN CXML:PARSE-FILE) {100533017B}> #P"/home/quicklisp/quicklisp-controller/space dist/build-cache/cl-l10n-cldr/6b3a2e8fbf2b933e13d85fb21d87943eac67cbf8/cl-l10n-cldr-20141126-darcs/common/main/root.xml")
18: (PARSE-CLDR-FILE "root")


More information about the cxml-devel mailing list