kinow commented on PR #1679:
URL: https://github.com/apache/jena/pull/1679#issuecomment-1366581682

   Hi @SimonBin 
   
   ## This branch
   
   Here's what I did:
   
   - deleted the branch for this PR, fetched upstream again, checked out this 
branch (i.e. synced to make sure I'm not missing anything)
   ```
   commit 145ed896680bb9301283792866b0b59132589b3d (HEAD -> pr-1679, edit-data)
   Author: Simon Bin <[email protected]>
   Date:   Fri Dec 16 00:42:49 2022 +0100
   
       GH-1679: edit not working on non root g-sp
   ```
   
   - Started Eclipse and started `FusekiCmd`.
   - Deleted all my datasets.
   - Created a `ds` dataset TDB2 persisted to disk.
   - Using the UI, went to Edit, listed graphs, chose the default, edited the 
graph (on this branch) and loaded the `books.ttl` contents, then saved it.
   
   Then I stopped `FusekiCmd` in Eclipse, and opened the `ds.ttl` 
configuration, 
`/home/kinow/Development/java/jena/jena/jena-fuseki2/jena-fuseki-webapp/run/configuration/ds.ttl`.
   
   >line to remove
   
   After removing it, my service configuration is:
   
   ```turtle
   :service_tdb_all  rdf:type  fuseki:Service ;
           rdfs:label       "TDB2 ds" ;
           fuseki:dataset   :tdb_dataset_readwrite ;
           fuseki:endpoint  [ fuseki:name       "query" ;
                              fuseki:operation  fuseki:query
                            ] ;
           fuseki:endpoint  [ fuseki:operation  fuseki:update ] ;
           fuseki:endpoint  [ fuseki:name       "sparql" ;
                              fuseki:operation  fuseki:query
                            ] ;
           fuseki:endpoint  [ fuseki:name       "get" ;
                              fuseki:operation  fuseki:gsp-r
                            ] ;
           fuseki:endpoint  [ fuseki:name       "update" ;
                              fuseki:operation  fuseki:update
                            ] ;
           fuseki:endpoint  [ fuseki:operation  fuseki:query ] ;
           fuseki:endpoint  [ fuseki:name       "data" ;
                              fuseki:operation  fuseki:gsp-rw
                            ] ;
           fuseki:name      "ds" .
   ```
   
   Restarting `FusekiCmd` it prints the available services/endpoints:
   
   ```
   [2022-12-28 12:00:18] Server     INFO  Configuration file: 
/home/kinow/Development/java/jena/jena/jena-fuseki2/jena-fuseki-webapp/run/config.ttl
   [2022-12-28 12:00:18] Server     INFO  Path = /ds
   [2022-12-28 12:00:18] Server     INFO    Operation = query   Endpoints = [ 
"", "query", "sparql" ]
   [2022-12-28 12:00:18] Server     INFO    Operation = update  Endpoints = [ 
"", "update" ]
   [2022-12-28 12:00:18] Server     INFO    Operation = gsp-rw  Endpoints = [ 
"data" ]
   [2022-12-28 12:00:18] Server     INFO    Operation = gsp-r   Endpoints = [ 
"get" ]
   [2022-12-28 12:00:18] Server     INFO  System
   [2022-12-28 12:00:18] Server     INFO    Memory: 3.8 GiB
   [2022-12-28 12:00:18] Server     INFO    Java:   15
   [2022-12-28 12:00:18] Server     INFO    OS:     Linux 5.15.0-56-generic 
amd64
   [2022-12-28 12:00:18] Server     INFO    PID:    24552
   ```
   
   I think this is expected, as I have now only the "data" named endpint, 
`Operation = gsp-rw  Endpoints = [ "data" ]`.
   
   I re-did the same steps, listing the graphs, loading the contents, and then 
editing. Everything works fine.
   
   ## main branch
   
   With the `main` branch, after removing the line you suggested I get an error 
when I click on the graph name. So I believe I reproduced the issue 
:slightly_smiling_face: 
   
   I will try now to understand the fix and see if/how we can write a test for 
it (over next days, which should be fine as this is for after 4.7.0 - in 
progress).
   
   Thanks!!
   
   
![image](https://user-images.githubusercontent.com/304786/209805050-d843804d-8168-4767-84a0-a2ac27c5111e.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to