You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Ias <ia...@tmax.co.kr> on 2003/11/20 08:54:09 UTC
About XMLUtils' using deprecated SAX1 facility
I found that getSAXParser has
parser.getParser().setEntityResolver(new
DefaultEntityResolver());
and parser.getParser's result, Parser was deprecated and replaced by
XMLReader since SAX 2.0. I think the above line can be removed because Axis
obviously requires a JAXP 1.1 implementation for XML parser. I ran "ant
clean all-tests" without the line and it worked fine. If any issue about
this update doesn't arise, I'd like to commit the change.
Thanks for your opinion and feedback in advance,
Ias
===========================================================
Lee, Changshin (Korean name)
Ias (International name)
Company Web Site: http://www.tmax.co.kr
Personal Web Site: http://www.iasandcb.pe.kr
---------------------------------------------------------
Senior Researcher, Emerging Technology Evangelist & JCP Activities
Coordinator
JCP member - http://jcp.org/en/participation/members/L
R&D Institute
Tmax Soft, Inc.
JCP member - http://jcp.org/en/participation/members/T
==========================================================
RE: About XMLUtils' using deprecated SAX1 facility
Posted by Davanum Srinivas <di...@yahoo.com>.
Ias,
I was just asking you to be careful...that's all :)
-- dims
--- Ias <ia...@tmax.co.kr> wrote:
> >
> > Ias,
> >
> > I think this was added because to prevent XXE attacks -
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14105
> Thanks for the bug report. Let me explain about this issue more:
>
> parser.getParser().setEntityResolver(new
> DefaultEntityResolver());
> XMLReader reader = parser.getXMLReader();
> reader.setEntityResolver(new DefaultEntityResolver());
>
> Do you mean that parser.getParser().setEntityResolver(new
> DefaultEntityResolver()); is necessary to protect from XXE attacks although
> reader.setEntityResolver(new DefaultEntityResolver()); follows up? I guess
> they work duplicated and reader.setEntityResolver(new
> DefaultEntityResolver()); is enough for the purpose.
>
> Ias
>
> >
> > -- dims
> >
> > --- Ias <ia...@tmax.co.kr> wrote:
> > > I found that getSAXParser has
> > >
> > > parser.getParser().setEntityResolver(new
> > > DefaultEntityResolver());
> > >
> > > and parser.getParser's result, Parser was deprecated and
> > replaced by
> > > XMLReader since SAX 2.0. I think the above line can be
> > removed because
> > > Axis obviously requires a JAXP 1.1 implementation for XML parser. I
> > > ran "ant clean all-tests" without the line and it worked
> > fine. If any
> > > issue about this update doesn't arise, I'd like to commit
> > the change.
> > >
> > > Thanks for your opinion and feedback in advance,
> > >
> > > Ias
> > >
> > > ===========================================================
> > > Lee, Changshin (Korean name)
> > > Ias (International name)
> > > Company Web Site: http://www.tmax.co.kr
> > > Personal Web Site: http://www.iasandcb.pe.kr
> > > ---------------------------------------------------------
> > > Senior Researcher, Emerging Technology Evangelist & JCP Activities
> > > Coordinator JCP member - http://jcp.org/en/participation/members/L
> > > R&D Institute
> > > Tmax Soft, Inc.
> > > JCP member - http://jcp.org/en/participation/members/T
> > > ==========================================================
> > >
> >
> >
> > =====
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
RE: About XMLUtils' using deprecated SAX1 facility
Posted by Ias <ia...@tmax.co.kr>.
>
> Ias,
>
> I think this was added because to prevent XXE attacks -
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14105
Thanks for the bug report. Let me explain about this issue more:
parser.getParser().setEntityResolver(new
DefaultEntityResolver());
XMLReader reader = parser.getXMLReader();
reader.setEntityResolver(new DefaultEntityResolver());
Do you mean that parser.getParser().setEntityResolver(new
DefaultEntityResolver()); is necessary to protect from XXE attacks although
reader.setEntityResolver(new DefaultEntityResolver()); follows up? I guess
they work duplicated and reader.setEntityResolver(new
DefaultEntityResolver()); is enough for the purpose.
Ias
>
> -- dims
>
> --- Ias <ia...@tmax.co.kr> wrote:
> > I found that getSAXParser has
> >
> > parser.getParser().setEntityResolver(new
> > DefaultEntityResolver());
> >
> > and parser.getParser's result, Parser was deprecated and
> replaced by
> > XMLReader since SAX 2.0. I think the above line can be
> removed because
> > Axis obviously requires a JAXP 1.1 implementation for XML parser. I
> > ran "ant clean all-tests" without the line and it worked
> fine. If any
> > issue about this update doesn't arise, I'd like to commit
> the change.
> >
> > Thanks for your opinion and feedback in advance,
> >
> > Ias
> >
> > ===========================================================
> > Lee, Changshin (Korean name)
> > Ias (International name)
> > Company Web Site: http://www.tmax.co.kr
> > Personal Web Site: http://www.iasandcb.pe.kr
> > ---------------------------------------------------------
> > Senior Researcher, Emerging Technology Evangelist & JCP Activities
> > Coordinator JCP member - http://jcp.org/en/participation/members/L
> > R&D Institute
> > Tmax Soft, Inc.
> > JCP member - http://jcp.org/en/participation/members/T
> > ==========================================================
> >
>
>
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
>
Re: About XMLUtils' using deprecated SAX1 facility
Posted by Davanum Srinivas <di...@yahoo.com>.
Ias,
I think this was added because to prevent XXE attacks -
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14105
-- dims
--- Ias <ia...@tmax.co.kr> wrote:
> I found that getSAXParser has
>
> parser.getParser().setEntityResolver(new
> DefaultEntityResolver());
>
> and parser.getParser's result, Parser was deprecated and replaced by
> XMLReader since SAX 2.0. I think the above line can be removed because Axis
> obviously requires a JAXP 1.1 implementation for XML parser. I ran "ant
> clean all-tests" without the line and it worked fine. If any issue about
> this update doesn't arise, I'd like to commit the change.
>
> Thanks for your opinion and feedback in advance,
>
> Ias
>
> ===========================================================
> Lee, Changshin (Korean name)
> Ias (International name)
> Company Web Site: http://www.tmax.co.kr
> Personal Web Site: http://www.iasandcb.pe.kr
> ---------------------------------------------------------
> Senior Researcher, Emerging Technology Evangelist & JCP Activities
> Coordinator
> JCP member - http://jcp.org/en/participation/members/L
> R&D Institute
> Tmax Soft, Inc.
> JCP member - http://jcp.org/en/participation/members/T
> ==========================================================
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/