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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

135 views 5 2
Join discussion

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