[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-04-16 Thread Thomas Mueller (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated OAK-1076:


Assignee: Alex Parvulescu  (was: Thomas Mueller)

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
Priority: Minor
 Fix For: 1.1

 Attachments: OAK-1076-b.patch, OAK-1076.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-04-16 Thread Thomas Mueller (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated OAK-1076:


Fix Version/s: (was: 1.1)
   1.0

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Thomas Mueller
Priority: Minor
 Fix For: 1.0

 Attachments: OAK-1076-b.patch, OAK-1076.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-04-16 Thread Jukka Zitting (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jukka Zitting updated OAK-1076:
---

Attachment: 0001-OAK-1076-XPath-failures-for-typed-properties.patch

The attached patch fixes the evaluation of this and other multivalued 
comparisons.

I'm not sure which one is the better approach here:

* Apply the patch now for 1.0, even though it (correctly, I'd argue) changes 
how some query constraints are evaluated and thus could have impact on existing 
clients.
* File a new issue for this and mark it as a known issue for 1.0. Just disable 
the troublesome test case in 1.0 to allow the build to pass on Java 8.

WDYT?

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Thomas Mueller
Priority: Minor
 Fix For: 1.0

 Attachments: 0001-OAK-1076-XPath-failures-for-typed-properties.patch, 
 OAK-1076-b.patch, OAK-1076.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-04-15 Thread Thomas Mueller (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated OAK-1076:


Attachment: OAK-1076-b.patch

Slightly improved patch (not fully tested yet) - [~alex.parvulescu], could you 
have a look please? I mainly changed SelectorImpl, support for data types other 
than String.

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
Priority: Minor
 Fix For: 1.1

 Attachments: OAK-1076-b.patch, OAK-1076.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-04-10 Thread Alex Parvulescu (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Parvulescu updated OAK-1076:
-

Attachment: (was: OAK-1076-test.patch)

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
Priority: Minor
 Fix For: 1.1

 Attachments: OAK-1076.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-04-10 Thread Alex Parvulescu (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Parvulescu updated OAK-1076:
-

Attachment: OAK-1076.patch

This is now about wildcards in the property constraint.

If given a query like the following:
{code}
//*[(*/@prop  1)]
{code}
the query engine will transform the PropertyValue it into a multi property 
string and fallback to comparing strings instead of numerals.

I'm attaching a patch to address some of the issues around properly typing the 
value used to compare against, but looking at the way the current code works, 
it will not be possible to match on wildcards without transforming to string in 
some cases (left a TODO in the code).

What I fixed is:
 - in the case there is a single property match, return it with the initial 
type, if there are more than one properties, they will be merged into a 
multi-valued string property (old mechanism)

 - fixed an issue with the wildcard match in the case of a constraint of type 
_*/name_ where the query engine will return the good node (the parent) but also 
the child node that had the property.

[~tmueller] feedback needed :)



 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
Priority: Minor
 Fix For: 1.1

 Attachments: OAK-1076.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-03-23 Thread Michael Marth (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Marth updated OAK-1076:
---

Priority: Minor  (was: Major)

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
Priority: Minor
 Fix For: 0.20

 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-03-18 Thread Michael Marth (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Marth updated OAK-1076:
---

Fix Version/s: (was: 1.0)
   0.20

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
 Fix For: 0.20

 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2014-01-15 Thread Alex Parvulescu (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Parvulescu updated OAK-1076:
-

Fix Version/s: (was: 0.15)
   1.0

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
 Fix For: 1.0

 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2013-11-13 Thread Michael Marth (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Marth updated OAK-1076:
---

Fix Version/s: (was: 0.11)
   0.12

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
 Fix For: 0.12

 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2013-11-13 Thread Michael Marth (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Marth updated OAK-1076:
---

Assignee: Alex Parvulescu

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
 Fix For: 0.12

 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2013-11-07 Thread Michael Marth (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Marth updated OAK-1076:
---

Fix Version/s: 0.11

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
 Fix For: 0.11

 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (OAK-1076) XPath failures for typed properties

2013-10-03 Thread Alex Parvulescu (JIRA)

 [ 
https://issues.apache.org/jira/browse/OAK-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Parvulescu updated OAK-1076:
-

Attachment: OAK-1076-test.patch

attaching test case

 XPath failures for typed properties
 ---

 Key: OAK-1076
 URL: https://issues.apache.org/jira/browse/OAK-1076
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: core, query
Reporter: Alex Parvulescu
 Attachments: OAK-1076-test.patch


 It looks like there are some failures in xpath queries that expect a match 
 only on properties of a certain type (which is to be inferred from the query)



--
This message was sent by Atlassian JIRA
(v6.1#6144)