Why does the same query produces different results from different interfaces?

In Fisheye(3.5.3), when I try to search for commits without comments using EyeQL - the results on the browser is perfect, but when I try to implement the same thing through a java program, I get errors.

My Query is:  select revisions from dir / where comment = "" return count(distinct csid)

On the browser I see:

browser.png

 

When I print the URL and the InputStream in Java I get the following output:

java.png

<error> error parsing query: expecting &#034;revisions&#034;, found &#039;null&#039;</error>

 

Any idea why I get this error?

Is this a bug?

 

1 answer

0 votes

Try urlencoding the Eye QL query, i.e. use select%20revisions%20from%20dir%20/%20where%20comment%20=%20""%20return%20count(distinct%20csid) rather than select revisions from dir / where comment = "" return count(distinct csid)

Hope that helps,
Piotr 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

316 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you