Bug 1022241 - Turn off "Honor All Schema Locations" for XML validation in SwitchYard project preferences
Summary: Turn off "Honor All Schema Locations" for XML validation in SwitchYard projec...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard Editor
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER6
: ---
Assignee: Rob Cernich
QA Contact: Andrej Podhradsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-22 19:56 UTC by Brian Fitzpatrick
Modified: 2014-06-16 23:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-06 15:25:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1779 0 Major Closed Turn off "Honor All Schema Locations" for XML validation in SwitchYard project preferences 2014-06-16 23:48:31 UTC

Description Brian Fitzpatrick 2013-10-22 19:56:29 UTC
Description of problem:

When creating new SwitchYard projects, the user must always turn off "Honor All Schema Locations" in the XML preferences by hand for the project. Instead, we should flip this preference to false in the m2e configurator when the project is created.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 JBoss JIRA Server 2013-10-22 20:52:46 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1779

This came out of the usability review but has been an issue with the tooling for a while. We put the code to disable "Honour All Schema Locations" into the facet installation class so it gets triggered the first time a project is created (i.e. "New SwitchYard Project") and when it is imported (i.e. importing an existing project via the m2e import wizard in Eclipse). 

What happens is that the project's "Validation->XML Syntax" settings are updated to override the workbench-wide setting for Honor all Schema. "Enable Project Specific Settings" is checked and "Honor all XML schema locations" is unchecked. 

Note that if the facets have already been created, the change is not made. And note that if the "Honor all schema locations" box is unchecked in the workbench settings, the change is not made to the project settings.

Comment 3 JBoss JIRA Server 2013-10-25 03:06:27 UTC
Rob Cernich <rcernich> made a comment on jira SWITCHYARD-1779

pushed

i modified the test plugins to not disable this setting globally to test that the setting is being disabled for switchyard projects, which it is.

Comment 4 JBoss JIRA Server 2013-10-26 19:49:10 UTC
Rob Cernich <rcernich> updated the status of jira SWITCHYARD-1779 to Reopened

Comment 5 JBoss JIRA Server 2013-10-26 19:49:10 UTC
Rob Cernich <rcernich> made a comment on jira SWITCHYARD-1779

Hey Brian,

Can you validate that this works when installed in JBT or JBDS?  I installed the latest SY into JBDS and was getting XML errors in the switchyard.xml file.  The setting is disabled in the project specific preferences, but enabled for the workspace.  The only way the errors go away is when I disable the workspace setting.  I'm not sure what the difference is between testing locally and testing when installed in JBDS.

Thanks in advance,
Rob

Comment 6 JBoss JIRA Server 2013-10-26 20:19:47 UTC
Rob Cernich <rcernich> made a comment on jira SWITCHYARD-1779

It appears the problem may be related to the XHTML validator contributed by the JSF tools.  Disabling the XHTML validator seems to make the problem go away.  I haven't investigated any further than this.

Comment 7 JBoss JIRA Server 2013-10-28 12:46:51 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1779

Huh. That's weird, but I can take a look.

Comment 8 JBoss JIRA Server 2013-10-28 14:33:32 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1779

Downloading the latest JBDS to check it out in a bit.

Comment 9 JBoss JIRA Server 2013-10-29 22:15:31 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1779

Created JBIDE-15819 to address the XHTML Validator problem from the JSF tools. 

Will create a new pull request to override the workbench-level "Honour all XML schema locations" setting for now and we can roll it back to a project level setting when it gets fixed.

Comment 10 JBoss JIRA Server 2013-10-29 22:45:47 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1779

Added new PR - https://github.com/jboss-switchyard/tools/pull/336 - to address issue with XHTML Validator (JBIDE-15819)

Comment 11 JBoss JIRA Server 2013-10-31 19:47:45 UTC
Rob Cernich <rcernich> made a comment on jira SWITCHYARD-1779

pushed second PR

Comment 12 JBoss JIRA Server 2013-11-08 20:59:07 UTC
Victor Rubezhny <ruby> made a comment on jira SWITCHYARD-1779

Cannot log in to RH-bugzilla, so posting it here.

The switchyard1779.patch proposes the code I've used to test the fix for the issue [JBIDE-15819|https://issues.jboss.org/browse/JBIDE-15819].

This patch restores the project-level preferences to be used instead of workspace-level preferences and adds flushing of new preference values upon a project creation.

This patch return to is to be applied not earlier than the fix for [JBIDE-15819|https://issues.jboss.org/browse/JBIDE-15819] will be resolved.

Thanks again for a great catch!

Comment 13 JBoss JIRA Server 2013-11-08 20:59:42 UTC
Victor Rubezhny <ruby> made a comment on jira SWITCHYARD-1779

Cannot log in to RH-bugzilla, so posting it here.

The switchyard1779.patch proposes the code I've used to test the fix for the issue [JBIDE-15819|https://issues.jboss.org/browse/JBIDE-15819].

This patch restores the project-level preferences to be used instead of workspace-level preferences and adds flushing of new preference values upon a project creation.

This patch is to be applied not earlier than the fix for [JBIDE-15819|https://issues.jboss.org/browse/JBIDE-15819] will be resolved.

Thanks again for a great catch!

Comment 14 Andrej Podhradsky 2013-12-18 16:55:47 UTC
Verified with JBDS-IS 7.0.0.CR1

Comment 15 JBoss JIRA Server 2014-06-16 23:48:31 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1779 to Closed


Note You need to log in before you can comment on or make changes to this bug.