[ 
https://issues.apache.org/jira/browse/JENA-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16368721#comment-16368721
 ] 

David Cook commented on JENA-1480:
----------------------------------

I'm looking at js/app/models/dataset.js, and I'm seeing the URL with curly 
braces being passed to $.getJSON. [http://api.jquery.com/jquery.getjson/] 
doesn't say whether or not it's supposed to be URL encoded, but I would imagine 
that jQuery would handle the URL encoding itself although the jQuery page does 
say the "data" key can be used to add parameters to the URL and that it will 
take care of the URL encoding, so maybe it does expect you to do the encoding 
yourself.

There's a reverse proxy/load balancer yeah. 

Trying now by going to the server directly... and still getting the same error 
in Chrome. Actually there might be another reverse proxy for that one...

When I do the URL request on the server itself... wget works and cURL fails. 

I don't see anything in the Tomcat logs when I use the browser, but when I use 
cURL I do see the 400 Parse error as either cURL or Tomcat are failing to 
handle the unencoded curly braces. 

In any case... it looks like jQuery isn't encoding the curly braces, so I'm 
surprised that it's working for you. This is the Javascript being used for me: 
/fuseki/js/lib/jquery-1.10.2.min.js

> Bad Request 400 returned when clicking "count triples in all graphs" in 
> Fuseki info
> -----------------------------------------------------------------------------------
>
>                 Key: JENA-1480
>                 URL: https://issues.apache.org/jira/browse/JENA-1480
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>    Affects Versions: Jena 3.7.0
>            Reporter: David Cook
>            Priority: Minor
>         Attachments: error.html
>
>
> When I click "count triples in all graphs", the UI doesn't change and I see 
> the following in the Chrome console:
> {noformat}
> GET 
> <FUSEKI_URL>/query?query=select%20(count(*)%20as%20?count)%20\{?s%20?p%20?o}
> 400 (Bad Request)
> jquery-1.10.2.min.js:6
> {noformat}
> I've experienced this in Fuseki 2.6.0 when using the WAR too. I'm also using 
> the "tdb:unionDefaultGraph true" configuration setting.
> I've used someone else's install of Fuseki 2.5.0 and it works for them. I 
> don't think they're using "tdb:unionDefaultGraph true", and I'm not sure if 
> they're using the WAR or a standalone. Since there is no Server: 
> Apache-Coyote response header, I'm guessing they're using the standalone. I 
> don't know if that would make a difference. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to