Fuse IDE
  1. Fuse IDE
  2. ECLIPSE-305

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

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Camel Editor
    • Labels:
      None
    • Environment:
      1.1.71
    • Similar Issues:
      Show 10 results 

      Description

      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.

        Activity

        Hide
        Claus Ibsen
        added a comment -

        The yellow hint box shows wrong expectations. It should show the possible data format types such as:

        • bindy
        • csv
        • custom
        • jaxb
        • etc.
        Show
        Claus Ibsen
        added a comment - The yellow hint box shows wrong expectations. It should show the possible data format types such as: bindy csv custom jaxb etc.
        Hide
        Claus Ibsen
        added a comment -

        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>
        
        Show
        Claus Ibsen
        added a comment - 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>
        Hide
        James Strachan
        added a comment -

        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

        Show
        James Strachan
        added a comment - 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

          People

          • Assignee:
            James Strachan
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: