Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 298644 - Proposed patch to modisco.common.core
Summary: Proposed patch to modisco.common.core
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.8.0   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 09:07 EST by Nicolas Guyomar CLA
Modified: 2010-09-22 09:25 EDT (History)
4 users (show)

See Also:


Attachments
Extension of XMLResourceImpl class for DTD (1.75 KB, patch)
2009-12-30 09:08 EST, Nicolas Guyomar CLA
fabien.giquel: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Guyomar CLA 2009-12-30 09:07:47 EST
Build Identifier: I20090611-1540

This patch is an extension of XMLResourceImpl EMF class in order to open files referencing DTD. 
The aim of this patch is to avoid bugs occuring when the XML parser try to check the DTD online if Internet connection is not available 
This class will be available for various future MoDisco discoverers based using DTD definitions.

Reproducible: Didn't try
Comment 1 Nicolas Guyomar CLA 2009-12-30 09:08:51 EST
Created attachment 155129 [details]
Extension of XMLResourceImpl class for DTD
Comment 2 Fabien Giquel CLA 2009-12-30 09:30:06 EST
Hi Nicolas,

could you make, as soon a possible, the following confirmations via this bug:

1. You authored 100% of the content
2. You have the rights to donate the content to Eclipse under the EPL
3. You have already provided the filled Employer Consent Forms to the
Foundation 

Fabien.
Comment 3 Nicolas Bros CLA 2010-01-04 03:20:01 EST
It sounds like a bug I already tried to fix by inhibiting the default "URIHandlerImpl":
org.eclipse.gmt.modisco.common.core.resource.MoDiscoResourceSet.createURIConverter
I wonder if this is redundant now?
Comment 4 Fabien Giquel CLA 2010-01-04 11:20:23 EST
I don't think it is redundant. 
The new mechanism does not require MoDiscoResourceSet using -> NoExternalLoadXmlResourceImpl hierarchy might be used in some more EMF contexts.
Within a MoDiscoResourceSet, the old mechanism is more general than just "DTD" references cases.
Comment 5 Nicolas Guyomar CLA 2010-01-13 14:18:50 EST
(In reply to comment #2)
> Hi Nicolas,
> 
> could you make, as soon a possible, the following confirmations via this bug:
> 
> 1. You authored 100% of the content
> 2. You have the rights to donate the content to Eclipse under the EPL
> 3. You have already provided the filled Employer Consent Forms to the
> Foundation 
> 
> Fabien.

Hi Fabien,

1. I am the author of 100% of the content
2. I have the rights to donate the content to Eclipse under the EPL
3. I have already provided the filled Employer Consent Forms to the Foundation 


Nicolas
Comment 6 Fabien Giquel CLA 2010-01-14 13:32:31 EST
Hugo, 
I think a CQ might be necessary for this bug. The contribution proposition has a reference to a String constant coming from a apache licensed source :
"http://apache.org/xml/features/nonvalidating/load-external-dtd"

It should not cause any problem since the constant is delivered with SUN JDK (com.sun.org.apache.xerces.internal.impl.Constants) and so should be seen as a "exempt pre-req" (http://www.eclipse.org/org/documents/Eclipse_Policy_and_Procedure_for_3rd_Party_Dependencies_Final.pdf).

Could you please initiate a CQ if you agree with the need ?

Fabien.
Comment 7 Hugo Bruneliere CLA 2010-01-15 03:46:50 EST
Hi Fabien,

If the problem is just about a reference to a String constant, we may find an alternative solution so that we don't need such a dependency anymore (by adding the constant to the class definition for instance).

My opinion is that we are starting having (too) many dependencies to third-party libraries. We should try to limitate these dependencies to the strictly required/useful cases...

Best regards,

Hugo
Comment 8 Fabien Giquel CLA 2010-01-15 05:24:42 EST
Hugo,
my explanation in my last comment was not understandable enough :

In fact, since the referenced Constant is defined in Java component delivered within the SUN JDK, such a component is a pre-requisite for Eclipse components working and does not create problem from IP point of view.

I commited the patch into "org.eclipse.gmt.modisco.common.core".
Comment 9 Hugo Bruneliere CLA 2010-01-15 05:28:25 EST
OK, thanks Fabien!

Hugo
Comment 10 Hugo Bruneliere CLA 2010-02-02 04:31:36 EST
Patch integrated