Hi GReg Team,

Can we get the issue reported at [1] fixed? It fills up the ES logs and we
need the fix for ES 2.0 GA.

/Ruchira

[1]


       Ruchira Wageesha
<https://wso2.org/jira/secure/ViewProfile.jspa?name=ruchira%40wso2.com>
created [image: Bug] REGISTRY-2653
<https://wso2.org/jira/browse/REGISTRY-2653>
 *NegativeArraySizeException Exception with Artifact Searching*
<https://wso2.org/jira/browse/REGISTRY-2653>
       *Issue Type:*  [image: Bug] Bug   *Assignee:*  Sagara Gunathunga
<https://wso2.org/jira/secure/ViewProfile.jspa?name=sagara%40wso2.com>
*Created:*  09/Jul/15 8:03 PM   *Description:*

Assume you have a search criteria which would match N assets. When Artifact
search API is called with an offset greater than N, it gives the following
exception, which needs to be handled gracefully.

As there is no way to get the total result count(if you have one, that
might be expensive as well) before hand, there is no way for the caller to
always use an offset less than N.

Anyway, without relying on the users proper inputs, it should be handled
properly from the registry side.

[1]
Caused by: java.lang.NegativeArraySizeException
at
org.wso2.carbon.registry.indexing.service.ContentBasedSearchService.searchContentInternal(ContentBasedSearchService.java:221)
at
org.wso2.carbon.registry.indexing.service.ContentBasedSearchService.searchByAttribute(ContentBasedSearchService.java:264)
at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$AttributeSearchServiceImpl.search(IndexingServiceComponent.java:164)
at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$AttributeSearchServiceImpl.search(IndexingServiceComponent.java:177)
at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$AttributeSearchServiceImpl.search(IndexingServiceComponent.java:191)
at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$AttributeSearchServiceImpl.search(IndexingServiceComponent.java:158)
at
org.wso2.carbon.governance.api.util.GovernanceUtils.findGovernanceArtifacts(GovernanceUtils.java:1719)
at
org.wso2.carbon.governance.api.common.GovernanceArtifactManager.findGovernanceArtifacts(GovernanceArtifactManager.java:663)
at
org.wso2.carbon.governance.api.generic.GenericArtifactManager.findGenericArtifacts(GenericArtifactManager.java:273)
  *Project:*  WSO2 Governance Registry
<https://wso2.org/jira/browse/REGISTRY>   *Priority:*  [image: Highest]
Highest   *Reporter:*  Ruchira Wageesha
<https://wso2.org/jira/secure/ViewProfile.jspa?name=ruchira%40wso2.com>
      This
message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________
Carbon-jira mailing list
carbon-j...@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira




-- 

*Ruchira Wageesha**Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com>*

*email: ruch...@wso2.com <ruch...@wso2.com>,   blog:
ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
mobile: +94 77 5493444*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to