Active
Project:
SPARQL
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2009 at 07:10 UTC
Updated:
25 May 2009 at 23:01 UTC
I found it very confusing/buggy that the "SPARQL query" menu item was created after enabling the sparql module was enabled, but when I clicked on it found a 403 page not found. Thinking this was a bug I pulled up the page callback and found:
function sparql_endpoint() {
if (!SPARQL_ENDPOINT) {
die(drupal_not_found());
}
This is totally sloppy. You either conditionally define the menu handler or you should us an access callback to check if the endpoint is enabled. In either case you shouldn't show the user a link that they can't click on.
Comments
Comment #1
shunting commentedThe same principal goes for the admin interface for creating a sparql query node -- it includes a text box to enter the endpoint even if the endpoint functionality is disabled in the admin interface. Very confusing!