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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

151 views 4 7
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