On 06/04/15 12:43, Sorin Gheorghiu wrote:
Hi Andy,

thank you pointing my to the right direction. My first attempt to replace:
/$/** = localhost
with
/$/** = 127.0.0.1

That "localhost" is referring to the line in [main]. That's the bit that controls the filtering. See the Shiro documentation.

First try no restriction on /$/** and/or the simple user/password version shown.

        Andy

http://shiro.apache.org/web.html#Web-DefaultFilters


has failed with the following error:

[2015-04-06 13:18:35] EnvironmentLoader ERROR Shiro environment
initialization failed
java.lang.IllegalArgumentException: There is no filter with name
'127.0.0.1' to apply to chain [/$/**] in the pool of available Filters.
Ensure a filter with that name/path has first been registered with the
addFilter method(s).
...
[2015-04-06 13:18:35] WebAppContext WARN  Failed startup of context
o.e.j.w.WebAppContext@1e36c1da{/,file:/opt/apache-jena-fuseki-2.0.0/webapp/,STARTING}
java.lang.IllegalArgumentException: There is no filter with name
'127.0.0.1' to apply to chain [/$/**] in the pool of available Filters.
Ensure a filter with that name/path has first been registered with the
addFilter method(s).
...

The second attempt succeeded after I commented the line out:

## /$/** = localhost




It seems 'localhost' is defined as a filter name for the chain [/$/**]
whereas a hostname or 127.0.0.1 or [::1] won't be found within the file

localhost=org.apache.jena.fuseki.authz.LocalhostFilter

Do you have by chance an example of /shiro.ini/ with your suggested
solution please?

Regards,
Sorin


Am 06.04.2015 um 11:17 schrieb Andy Seaborne:
On 05/04/15 19:24, Sorin Gheorghiu wrote:
Hi,

after starting the server without errors and loading few triples
successfully, no dataset is shown on the server web interface (neither
on port 3030 nor 8080).
Moreover it is not posible to manage the datasets. What am I doing
wrong? The server runs under Ubuntu 12.04.

Thanks,
Sorin

Hi Sorin,

Thank you for providing a complete report - it makes answering
questions a whole lot easier.

The default setup is to restrict access to the admin interface to
"localhost" - you are using 134.34.201.195.

Even if that is the IP address of the local machine, it is restricted.

Change shiro.ini to change this.

"localhost" can be the name or 127.0.0.1 or [::1]

Drafted documentation;

http://jena.staging.apache.org/documentation/fuseki2/fuseki-security.html

    Andy


# java -Xmx8G  -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
[2015-04-05 19:48:02] Server     INFO  Fuseki 2.0.0
2015-03-08T09:49:20+0000
[2015-04-05 19:48:02] Config     INFO
FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
[2015-04-05 19:48:02] Config     INFO
FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
[2015-04-05 19:48:02] Servlet    INFO  Initializing Shiro environment
[2015-04-05 19:48:02] Config     INFO  Shiro file:
file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
[2015-04-05 19:48:02] Config     INFO  Configuration file:
/etc/fuseki/config.ttl
[2015-04-05 19:48:03] Builder    INFO  Service: TDB/text service
[2015-04-05 19:48:03] Config     INFO  Register: /GND030215
[2015-04-05 19:48:03] Server     INFO  Started 2015/04/05 19:48:03 CEST
on port 3030

# /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215 GND_example.ttl
19:36:37 INFO  loader               :: -- Start triples data phase
19:36:37 INFO  loader               :: ** Load empty triples table
19:36:37 INFO  loader               :: -- Start quads data phase
19:36:37 INFO  loader               :: ** Load empty quads table
19:36:37 INFO  loader               :: Load: GND_example.ttl --
2015/04/05 19:36:37 CEST
19:36:38 INFO  loader               :: -- Finish triples data phase
19:36:38 INFO  loader               :: ** Data: 196 triples loaded in
0,41 seconds [Rate: 483,95 per second]
19:36:38 INFO  loader               :: -- Finish quads data phase
19:36:38 INFO  loader               :: -- Start triples index phase
19:36:38 INFO  loader               :: ** Index SPO->POS: 194 slots
indexed in 0,02 seconds [Rate: 12.125,00 per second]
19:36:38 INFO  loader               :: ** Index SPO->OSP: 194 slots
indexed in 0,01 seconds [Rate: 12.933,33 per second]
19:36:38 INFO  loader               :: -- Finish triples index phase
19:36:38 INFO  loader               :: ** 194 triples indexed in 0,03
seconds [Rate: 6.258,06 per second]
19:36:38 INFO  loader               :: -- Finish triples load
19:36:38 INFO  loader               :: ** Completed: 196 triples loaded
in 0,46 seconds [Rate: 428,88 per second]
19:36:38 INFO  loader               :: -- Finish quads load



http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205


[2015-04-05 19:40:38] Fuseki     INFO  [1] GET
http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205

[2015-04-05 19:40:38] Fuseki     INFO  [1] GET /GND030215 :: 'query' ::
<none> ? query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
[2015-04-05 19:40:38] Fuseki     INFO  [1] Query = SELECT * {?s ?p ?o}
limit 5
[2015-04-05 19:40:38] Fuseki     INFO  [1] exec/select
[2015-04-05 19:40:38] Fuseki     INFO  [1] 200 OK (86 ms)
























--
Sorin Gheorghiu             Tel: +49 7531 88-3198
Universität Konstanz        Raum: B703
78464 konstanzsorin.gheorg...@uni-konstanz.de

- KIM: Abteilung Contentdienste -


Reply via email to