jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pkrishna <prabhakar.krishnasw...@ge.com>
Subject XPATH search not finding the item
Date Wed, 07 Oct 2009 21:53:14 GMT

We have run into a strange problem while doing an XPATH search. Here is the
scenario:

1. Save an item
2. Retrieve the item using some metadata properties of the item
3. Search succeeds
4. Save another item
5. Retrieve the item using some metadata properties of the second item
6. Search fails

We print out the contents of the repository and we can see the 2nd item
saved.


Here are the items in the repo:

First Item

15:38:18,854 ERROR ContentMgmtSupport:106 - -------	Name=
1cef2b91-f88c-4413-9243-1247b93edda8 type= ecr:ecisContent
15:38:18,885 ERROR ContentMgmtSupport:113 - -------		ecr:documentState  
active
15:38:18,885 ERROR ContentMgmtSupport:113 - -------		jcr:created  
2009-10-07T15:30:38.321-06:00
15:38:18,885 ERROR ContentMgmtSupport:113 - -------		jcr:primaryType  
ecr:ecisContent
15:38:18,885 ERROR ContentMgmtSupport:106 - -------		Name= ecr:variant type=
ecr:ecisVariant
15:38:18,885 ERROR ContentMgmtSupport:113 - -------		
ecr:contextualVariantId   525f629a-36b9-4171-bf52-2105da5cbf1a
15:38:18,885 ERROR ContentMgmtSupport:113 - -------			ecr:documentState  
active
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			jcr:uuid  
ea61f17d-c7a0-4569-847c-e560362f9882
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			ecr:contentType  
GENERIC
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			jcr:created  
2009-10-07T15:30:38.321-06:00
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			jcr:baseVersion  
41af73c6-5c05-4ea8-a0ec-31602a12e458
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			jcr:isCheckedOut  
false
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			jcr:primaryType  
ecr:ecisVariant
15:38:18,901 ERROR ContentMgmtSupport:113 - -------			ecr:language  
00000000-0000-0000-0000-000000000001
15:38:18,916 ERROR ContentMgmtSupport:113 - -------			ecr:variantId  
6485eac3-f13a-45ff-84b6-1f00a9f5527b
15:38:18,932 ERROR ContentMgmtSupport:116 - -------			ecr:keywords
15:38:18,932 ERROR ContentMgmtSupport:118 - tcat
15:38:18,932 ERROR ContentMgmtSupport:118 - tdog
15:38:18,932 ERROR ContentMgmtSupport:113 - -------			ecr:title  
e2fa3b01-43c4-4dc6-8b7f-90987482093b
15:38:18,932 ERROR ContentMgmtSupport:116 - -------			jcr:predecessors
15:38:18,932 ERROR ContentMgmtSupport:113 - -------			jcr:versionHistory  
4d2a594d-e716-4f9c-94cd-a895b67ba8b4
15:38:18,932 ERROR ContentMgmtSupport:113 - -------		
ecr:variantVersionState   1
15:38:18,932 ERROR ContentMgmtSupport:113 - -------			ecr:version   1
15:38:18,932 ERROR ContentMgmtSupport:113 - -------			ecr:author   Jack
15:38:18,932 ERROR ContentMgmtSupport:113 - -------			jcr:mimeType  
text/plain
15:38:18,948 ERROR ContentMgmtSupport:113 - -------			ecr:contentLocation  
Internal
15:38:18,948 ERROR ContentMgmtSupport:113 - -------			jcr:lastModified  
2009-10-07T15:30:38.227-06:00

-----------------------------------------------------------------------------------------------------
Second Item

15:38:19,026 ERROR ContentMgmtSupport:106 - -------	Name=
c249e45f-0f3d-41d6-ae12-65ef0a05d3bf type= ecr:ecisContent
15:38:19,026 ERROR ContentMgmtSupport:113 - -------		ecr:documentState  
active
15:38:19,026 ERROR ContentMgmtSupport:113 - -------		jcr:created  
2009-10-07T15:38:16.980-06:00
15:38:19,026 ERROR ContentMgmtSupport:113 - -------		jcr:primaryType  
ecr:ecisContent
15:38:19,026 ERROR ContentMgmtSupport:106 - -------		Name= ecr:variant type=
ecr:ecisVariant
15:38:19,026 ERROR ContentMgmtSupport:113 - -------		
ecr:contextualVariantId   9f6033dc-efc9-4622-b735-86c003626a90
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			ecr:documentState  
active
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			jcr:uuid  
a066d3f4-2beb-4dc1-8a73-1e77147db268
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			ecr:contentType  
GENERIC
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			jcr:created  
2009-10-07T15:38:16.980-06:00
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			jcr:baseVersion  
475aab50-e055-43cf-997c-b10d85a00405
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			jcr:isCheckedOut  
false
15:38:19,026 ERROR ContentMgmtSupport:113 - -------			jcr:primaryType  
ecr:ecisVariant
15:38:19,041 ERROR ContentMgmtSupport:113 - -------			ecr:language  
00000000-0000-0000-0000-000000000001
15:38:19,041 ERROR ContentMgmtSupport:113 - -------			ecr:variantId  
96395271-46b6-41a6-bd4e-bb1bd8f6cb66
15:38:19,041 ERROR ContentMgmtSupport:116 - -------			ecr:keywords
15:38:19,057 ERROR ContentMgmtSupport:118 - tcat
15:38:19,057 ERROR ContentMgmtSupport:118 - tdog
15:38:19,057 ERROR ContentMgmtSupport:113 - -------			ecr:title  
59fdbb5d-5a7c-4b4e-9abc-4511b2c0180e
15:38:19,057 ERROR ContentMgmtSupport:116 - -------			jcr:predecessors
15:38:19,073 ERROR ContentMgmtSupport:113 - -------		
ecr:variantVersionState   1
15:38:19,073 ERROR ContentMgmtSupport:113 - -------			jcr:versionHistory  
a284242e-bdf5-4cb1-ac40-9925ac769a8f
15:38:19,073 ERROR ContentMgmtSupport:113 - -------			ecr:version   1
15:38:19,073 ERROR ContentMgmtSupport:113 - -------			jcr:mimeType  
text/plain
15:38:19,073 ERROR ContentMgmtSupport:113 - -------			ecr:author   Jack
15:38:19,073 ERROR ContentMgmtSupport:113 - -------			ecr:contentLocation  
Internal
15:38:19,073 ERROR ContentMgmtSupport:113 - -------			jcr:lastModified  
2009-10-07T15:38:16.902-06:00

---------------------------------------------------------------------------------------------------

Here is the query while retrieving the 2nd item:

//ecr:variant[@ecr:documentState!='deleted' and
@ecr:language='00000000-0000-0000-0000-000000000001' and @ecr:author='Jack'
and @ecr:title='59fdbb5d-5a7c-4b4e-9abc-4511b2c0180e' and
@ecr:contentType='GENERIC' and @ecr:contentLocation='Internal' and
@jcr:mimeType='text/plain' and @ecr:keywords='cat' and @ecr:keywords='dog'
and @jcr:lastModified='2009-10-07T15:38:16.902-06:00']

We expect this query to retrieve the second item but fails.

Any help will be appreciated




-- 
View this message in context: http://www.nabble.com/XPATH-search-not-finding-the-item-tp25795093p25795093.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message