Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ECLIPSE-305
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse IDE

XML source view validator - Yellow hint box may show wrong expectations

Created: 11/Jul/11 09:11 AM   Updated: 11/Jul/11 10:33 AM
Component/s: Camel Editor
Affects Version/s: None
Fix Version/s: 2.0

File Attachments: None
Image Attachments:

1. yellow.png
(68 kB)
Environment: 1.1.71


 Description  « Hide
I have this route
<camelContext xmlns="http://camel.apache.org/schema/spring">
    <route id="myRoute">
        <from uri="timer:foo?period=5000"/>
        <marshal>
            <jaxb contextPath="com.foo" prettyPrint="true"/>
        </marshal>
        <log message="blah"/>
    </route>
</camelContext>

Now if I chose the source view tab, and start editing the XML. For example to make a mistake in the <jaxb> tag inside the <marshal> then I get a red underline and a yellow hint box what to expect.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 11/Jul/11 09:14 AM
The yellow hint box shows wrong expectations. It should show the possible data format types such as:
  • bindy
  • csv
  • custom
  • jaxb
  • etc.

Claus Ibsen added a comment - 11/Jul/11 09:14 AM
If I changed the <jaxb> to something invalid like <xxx> I get a red circle with a hint box. That hint box is wrong, see image.
<camelContext xmlns="http://camel.apache.org/schema/spring">
    <route id="myRoute">
        <from uri="timer:foo?period=5000"/>
        <marshal>
            <xxx/>
        </marshal>
        <log message="blah"/>
    </route>
</camelContext>

James Strachan added a comment - 11/Jul/11 10:33 AM
fixed in 1.1.72 - we now use the latest/greatest camel XSD in the XML editor and when validating the XML before switching to the design view