Menu

#9 xpath expressions containing the != operator are not evaluated correctly in 2.12 & 2.13

1.0
closed
None
2016-11-27
2016-11-11
Roland Räz
No

Hi,

In the versions 2.12 & 2.13 the != operator is not working correctly.

E.g. the following expression works fine:
/domain/system-properties/property[not(@name='key')]/@value
but this expression is not returning a the same result:
/domain/system-properties/property[@name!='key']/@value

The workaround is to use the not() function as shown above or to use the version 2.11.

In the attached test case there are some more examples.

Best regards & thanks for this awesome software,
Roland

1 Attachments

Discussion

  • Roland Räz

    Roland Räz - 2016-11-11

    Ups, this is the correct tests.

     
  • jimmy zhang

    jimmy zhang - 2016-11-11

    yes, thanks this problem is positively identified... my bad... I slapped myself on the face for this already...

     
  • Roland Räz

    Roland Räz - 2016-11-11

    please don't slap yourself, better invest the time fix this :-)

     
  • jimmy zhang

    jimmy zhang - 2016-11-11
    • status: open --> pending
     
  • jimmy zhang

    jimmy zhang - 2016-11-24

    all the bugs plus a few more are now being released in to 2.13_1....

     
  • jimmy zhang

    jimmy zhang - 2016-11-27

    I mark this ticket closed for now...

     
  • jimmy zhang

    jimmy zhang - 2016-11-27
    • status: pending --> closed
    • assigned_to: jimmy zhang
     

Log in to post a comment.

MongoDB Logo MongoDB