[ 
https://issues.apache.org/jira/browse/JENA-1766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1766:
--------------------------------
    Description: 
Using the new 3.13.0 Fuseki, I'm getting a bug in the web interface, the 
"SPARQL ENDPOINT" is empty in the query interface.

 

After a bit of debugging, I believe this is due to a difference returned by 
{{/fuseki/$/server}}: it used to return non-lower case values for {{srv.type}}, 
for instance with Fuseki 3.12.0:

{noformat}
{
    "version" : "3.13.0-SNAPSHOT" ,
    "built" : "2019-07-17T09:12:45+0000" ,
    "startDateTime" : "2019-09-27T16:18:34.271+00:00" ,
    "uptime" : 163057 ,
    "datasets" : [
      {
        "ds.name" : "/corerw" ,
        "ds.state" : true ,
        "ds.services" : [
        {
           "srv.type" : "GSP_RW" ,
           "srv.description" : "Graph Store Protocol" ,
           "srv.endpoints" : [ "data" ]
       } ,
       {
           "srv.type" : "Upload" ,
           "srv.description" : "File Upload" ,
          "srv.endpoints" : [ "upload" ]
       } ,
         {
          "srv.type" : "Query" ,
          "srv.description" : "SPARQL Query" ,
          "srv.endpoints" : [ "query" ]
       } ,
       {
          "srv.type" : "Update" ,}}}}
          "srv.description" : "SPARQL Update" ,}}}}
          "srv.endpoints" : [ "update" ]}}}}
       }
     ]
    }
  ]
 }
}
{noformat}
While with Fuseki 3.13.0, with an equivalent configuration, the returned json 
is:

 

{noformat}
  "version" : "3.13.0" ,
  "built" : "2019-09-25T15:01:44+0000" ,
  "startDateTime" : "2019-09-29T12:46:11.353+00:00" ,
  "uptime" : 3025 ,
  "datasets" : [
    {
      "ds.name" : "/corerw" ,
      "ds.state" : true ,
      "ds.services" : [
        {
          "srv.type" : "gsp-rw" ,
          "srv.description" : "Graph Store Protocol" ,
          "srv.endpoints" : [ "data" ]
        } ,
       {
          "srv.type" : "query" ,
          "srv.description" : "SPARQL Query" ,
          "srv.endpoints" : [ "query" ]
        } ,
       {
          "srv.type" : "update" ,
          "srv.description" : "SPARQL Update" ,
          "srv.endpoints" : [ "update" ]
        } ,
       {
          "srv.type" : "upload" ,
          "srv.description" : "File Upload" ,
          "srv.endpoints" : [ "upload" ]
        {
      ]
   }
  ]
}

where srv.type is all lower-case. This doesn't play well with the JavaScript 
code that compared against non-lowercase values, see for instance

 

[https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-webapp/src/main/webapp/js/app/models/dataset.js#L122]

  was:
Using the new 3.13.0 Fuseki, I'm getting a bug in the web interface, the 
"SPARQL ENDPOINT" is empty in the query interface.

 

After a bit of debugging, I believe this is due to a difference returned by 
{{/fuseki/$/server}}: it used to return non-lower case values for {{srv.type}}, 
for instance with Fuseki 3.12.0:

{noformat}
{
    "version" : "3.13.0-SNAPSHOT" ,
    "built" : "2019-07-17T09:12:45+0000" ,
    "startDateTime" : "2019-09-27T16:18:34.271+00:00" ,
    "uptime" : 163057 ,
    "datasets" : [
      {
        "ds.name" : "/corerw" ,
        "ds.state" : true ,
        "ds.services" : [
        {
           "srv.type" : "GSP_RW" ,
           "srv.description" : "Graph Store Protocol" ,
           "srv.endpoints" : [ "data" ]
       } ,
       {
           "srv.type" : "Upload" ,
           "srv.description" : "File Upload" ,
          "srv.endpoints" : [ "upload" ]
       } ,
         {
          "srv.type" : "Query" ,
          "srv.description" : "SPARQL Query" ,
          "srv.endpoints" : [ "query" ]
       } ,
       {
          "srv.type" : "Update" ,}}}}
          "srv.description" : "SPARQL Update" ,}}}}
          "srv.endpoints" : [ "update" ]}}}}
       }
     ]
    }
  ]
 }
}
{noformat}
While with Fuseki 3.13.0, with an equivalent configuration, the returned json 
is:

 

{{{}}
{{ {{  "version" : "3.13.0" ,}}}}
{{ {{  "built" : "2019-09-25T15:01:44+0000" ,}}}}
{{ {{  "startDateTime" : "2019-09-29T12:46:11.353+00:00" ,}}}}
{{ {{  "uptime" : 3025 ,}}}}
{{  "datasets" : [}}
{{    {}}
{{ {{      "ds.name" : "/corerw" ,}}}}
{{ {{      "ds.state" : true ,}}}}
{{      "ds.services" : [}}
{{        {}}
{{ {{          "srv.type" : "gsp-rw" ,}}}}
{{ {{          "srv.description" : "Graph Store Protocol" ,}}}}
{{ {{          "srv.endpoints" : [ "data" ]}}}}
{{ {{        } ,}}}}
{{       {}}
{{ {{          "srv.type" : "query" ,}}}}
{{ {{          "srv.description" : "SPARQL Query" ,}}}}
{{ {{          "srv.endpoints" : [ "query" ]}}}}
{{ {{        } ,}}}}
{{       {}}
{{ {{          "srv.type" : "update" ,}}}}
{{ {{          "srv.description" : "SPARQL Update" ,}}}}
{{ {{          "srv.endpoints" : [ "update" ]}}}}
{{ {{        } ,}}}}
{{       {}}
{{ {{          "srv.type" : "upload" ,}}}}
{{ {{          "srv.description" : "File Upload" ,}}}}
{{ {{          "srv.endpoints" : [ "upload" ]}}}}
{{ {{        {}}}}
{{ {{      ]}}}}
{{   }}}
{{ {{  ]}}}}
{{ {{}}}}}{{ }}

where srv.type is all lower-case. This doesn't play well with the JavaScript 
code that compared against non-lowercase values, see for instance

 

[https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-webapp/src/main/webapp/js/app/models/dataset.js#L122]


> Fuseki Web interface endpoint mechanism not working
> ---------------------------------------------------
>
>                 Key: JENA-1766
>                 URL: https://issues.apache.org/jira/browse/JENA-1766
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>    Affects Versions: Jena 3.13.0
>            Reporter: Elie Roux
>            Priority: Major
>
> Using the new 3.13.0 Fuseki, I'm getting a bug in the web interface, the 
> "SPARQL ENDPOINT" is empty in the query interface.
>  
> After a bit of debugging, I believe this is due to a difference returned by 
> {{/fuseki/$/server}}: it used to return non-lower case values for 
> {{srv.type}}, for instance with Fuseki 3.12.0:
> {noformat}
> {
>     "version" : "3.13.0-SNAPSHOT" ,
>     "built" : "2019-07-17T09:12:45+0000" ,
>     "startDateTime" : "2019-09-27T16:18:34.271+00:00" ,
>     "uptime" : 163057 ,
>     "datasets" : [
>       {
>         "ds.name" : "/corerw" ,
>         "ds.state" : true ,
>         "ds.services" : [
>         {
>            "srv.type" : "GSP_RW" ,
>            "srv.description" : "Graph Store Protocol" ,
>            "srv.endpoints" : [ "data" ]
>        } ,
>        {
>            "srv.type" : "Upload" ,
>            "srv.description" : "File Upload" ,
>           "srv.endpoints" : [ "upload" ]
>        } ,
>          {
>           "srv.type" : "Query" ,
>           "srv.description" : "SPARQL Query" ,
>           "srv.endpoints" : [ "query" ]
>        } ,
>        {
>           "srv.type" : "Update" ,}}}}
>           "srv.description" : "SPARQL Update" ,}}}}
>           "srv.endpoints" : [ "update" ]}}}}
>        }
>      ]
>     }
>   ]
>  }
> }
> {noformat}
> While with Fuseki 3.13.0, with an equivalent configuration, the returned json 
> is:
>  
> {noformat}
>   "version" : "3.13.0" ,
>   "built" : "2019-09-25T15:01:44+0000" ,
>   "startDateTime" : "2019-09-29T12:46:11.353+00:00" ,
>   "uptime" : 3025 ,
>   "datasets" : [
>     {
>       "ds.name" : "/corerw" ,
>       "ds.state" : true ,
>       "ds.services" : [
>         {
>           "srv.type" : "gsp-rw" ,
>           "srv.description" : "Graph Store Protocol" ,
>           "srv.endpoints" : [ "data" ]
>         } ,
>        {
>           "srv.type" : "query" ,
>           "srv.description" : "SPARQL Query" ,
>           "srv.endpoints" : [ "query" ]
>         } ,
>        {
>           "srv.type" : "update" ,
>           "srv.description" : "SPARQL Update" ,
>           "srv.endpoints" : [ "update" ]
>         } ,
>        {
>           "srv.type" : "upload" ,
>           "srv.description" : "File Upload" ,
>           "srv.endpoints" : [ "upload" ]
>         {
>       ]
>    }
>   ]
> }
> where srv.type is all lower-case. This doesn't play well with the JavaScript 
> code that compared against non-lowercase values, see for instance
>  
> [https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-webapp/src/main/webapp/js/app/models/dataset.js#L122]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to