[#45174] [ruby-trunk - Feature #5959][Assigned] Addrinfo#inspectname — Yui NARUSE <naruse@...>
9 messages
2012/02/02
[#45177] Re: [ruby-trunk - Feature #5959][Assigned] Addrinfo#inspectname
— Tanaka Akira <akr@...>
2012/02/02
2012年2月2日17:16 Yui NARUSE <naruse@airemix.jp>:
[#45178] Re: [ruby-trunk - Feature #5959][Assigned] Addrinfo#inspectname
— Tanaka Akira <akr@...>
2012/02/02
2012年2月2日18:12 Tanaka Akira <akr@fsij.org>:
[#45179] Re: [ruby-trunk - Feature #5959][Assigned] Addrinfo#inspectname
— "NARUSE, Yui" <naruse@...>
2012/02/02
(2012/02/02 18:33), Tanaka Akira wrote:
[#45192] Re: [ruby-trunk - Feature #5959][Assigned] Addrinfo#inspectname
— Tanaka Akira <akr@...>
2012/02/05
2012年2月2日19:13 NARUSE, Yui <naruse@airemix.jp>:
[#45183] Plan to 1.9.3 1st patch release — "NARUSE, Yui" <naruse@...>
もう気分は 2.0 なので正直 1.9.3 とかどうでもいいんですけど(ぇー)、
8 messages
2012/02/03
[#45184] Re: Plan to 1.9.3 1st patch release
— KOSAKI Motohiro <kosaki.motohiro@...>
2012/02/03
> = backport 時のレビューの廃止
[ruby-dev:45169] [ruby-trunk - Bug #5956][Open] rexml - パース時のnamespaceチェックでのエラーについて
From:
Miho Hiramatsu <slightly5050@...>
Date:
2012-02-01 06:47:23 UTC
List:
ruby-dev #45169
Issue #5956 has been reported by Miho Hiramatsu.
----------------------------------------
Bug #5956: rexml - パース時のnamespaceチェックでのエラーについて
https://bugs.ruby-lang.org/issues/5956
Author: Miho Hiramatsu
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version: 1.9.3
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
添付のプログラムを実行すると以下のエラーとなります。
(実行環境:CentOS6)
The 'xml' prefix must not be bound to any other namespace (http://www.w3.org/TR/REC-xml-names/#ns-decl)
Line: 7
Position: 477
XMLデータ内の以下の記述に対して、
xmlns:xml="http://www.w3.org/XML/1998/namespace"
「属性"xmlns:xml"のnamespaceが"http://www.w3.org/XML/1998/namespace"でなければエラーとする」というチェックを
/rexml/parsers/baseparser.rb line:386付近
で実行しているようですが、以下は誤りではないでしょうか。
[baseparser.rbのline:386付近を抜粋]
...略
attrs.each { |a,b,c,d,e|
if b == "xmlns"
if c == "xml"
if d != "http://www.w3.org/XML/1998/namespace"
msg = "The 'xml' prefix must not be bound to any other namespace "+
"(http://www.w3.org/TR/REC-xml-names/#ns-decl)"
raise REXML::ParseException.new( msg, @source, self )
end
...略
if d != "http://www.w3.org/XML/1998/namespace"
本来"d"ではなく"e"と比較すべきではないでしょうか。
--
http://bugs.ruby-lang.org/