Hi there,
That shiro.ini looks right. It can be tricky to make sure it is active.
If it is the standalone server, it will need a restart to see the
changed file in the run/ area. Or is this the war file?
The create step could be achieved by ssh to the VM and executing curl
locally.
Or using a configuration file on startup and not dynamically creating
the dataset.
The data loading isn't an admin operation - just POST to the "/dataset"
endpoint in the normal setup.
Andy
On 23/08/2021 13:11, Luis Enrique Ramos García wrote:
Dear All,
I installed fuseki in a virtual server, and when I tried to load a dataset
I realized it has some security setup.
I found some indications here:
https://jena.apache.org/documentation/fuseki2/fuseki-security.html
and modified my shiro.ini as follows:
*********shiro.ini
[main]
localhost=org.apache.jena.fuseki.authz.LocalhostFilter
[urls]
## Control functions open to anyone
/$/server = anon
/$/ping = anon
/$/datasets = anon
## and the rest are restricted to localhost.
## See above for 'localhost'
/$/** = anon
/**=anon
*******************************************
Now, when I try the following endpoints with postman:
get mypi/$/ping
get myip/$/server
I obtain the expected result, but when I try the following:
get mypi/$/datasets/
post myip/$/datasets/{name}
I get *Error 403: Forbidden.*
Thus, I wonder how I have to configure shiro.ini in order to let any user
to create datasets and load data?. Moreover, I wonder what should be the
right method to load datasets remotely?.
Best regards
Luis Ramos