You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Amandeep Srivastava <am...@gmail.com> on 2019/12/15 06:32:51 UTC

Fuseki - Grant permissions to all by default

Hi,

I'm trying to run an instance of fuseki server. This run generates a folder
called 'run', containing all fuseki config files.

I have to manually comment /$/** = localhostFilter and add /$/**=anon to
access and query the database from UI.

Is there a way to set this to default?

Thanks.

Re: Fuseki - Grant permissions to all by default

Posted by Andy Seaborne <an...@apache.org>.

On 03/01/2020 15:20, Amandeep Srivastava wrote:
> Hi Laura, thanks for the response.
> 
> I'm not using earlier version of Jena for my project, am just trying to
> compare performance of fuseki 1 and fuseki 2 across multiple hosts.
> 
> 
> On Fri, 3 Jan, 2020, 1:34 PM Laura Morales, <la...@mail.com> wrote:
> 
>>> I was able to find the Shiro.ini in fuseki2 code, but not in fuseki1. Can
>>> you please point me to its location in earlier version?
>>
>> The current release of Fuseki is 3.13; I doubt Fuseki 1 is still supported
>> and maybe it didn't even have Shiro at all. If you start the server without
>> a shiro.ini file, and if it does use Shiro, it should create a default file
>> automatically (that you can edit later). But seriously, upgrade.
>>
> 

Fuseki 1 (Fuskei1, Fuseki 2 refers to their internal architecture, not 
version number) was last released at Jena 3.9.0 (see 
http://central.maven.org/maven2/org/apache/jena/jena-fuseki1/)

There are no plans for any more releases of Fuseki 1.

Fuseki 2 - which is the "jena-fuseki" modules
http://central.maven.org/maven2/org/apache/jena/jena-fuseki/
is the current triple store engine.

Currently version 3.13.1 and is updated when there is a jena release.

Fuseki1 is out of date, not completely SPARQL compliant nor properly 
transactional on updates and queries.

It never had any security or shiro.

     Andy





Re: Fuseki - Grant permissions to all by default

Posted by Amandeep Srivastava <am...@gmail.com>.
Hi Laura, thanks for the response.

I'm not using earlier version of Jena for my project, am just trying to
compare performance of fuseki 1 and fuseki 2 across multiple hosts.


On Fri, 3 Jan, 2020, 1:34 PM Laura Morales, <la...@mail.com> wrote:

> > I was able to find the Shiro.ini in fuseki2 code, but not in fuseki1. Can
> > you please point me to its location in earlier version?
>
> The current release of Fuseki is 3.13; I doubt Fuseki 1 is still supported
> and maybe it didn't even have Shiro at all. If you start the server without
> a shiro.ini file, and if it does use Shiro, it should create a default file
> automatically (that you can edit later). But seriously, upgrade.
>

Re: Fuseki - Grant permissions to all by default

Posted by Laura Morales <la...@mail.com>.
> I was able to find the Shiro.ini in fuseki2 code, but not in fuseki1. Can
> you please point me to its location in earlier version?

The current release of Fuseki is 3.13; I doubt Fuseki 1 is still supported and maybe it didn't even have Shiro at all. If you start the server without a shiro.ini file, and if it does use Shiro, it should create a default file automatically (that you can edit later). But seriously, upgrade.

Re: Fuseki - Grant permissions to all by default

Posted by Amandeep Srivastava <am...@gmail.com>.
I was able to find the Shiro.ini in fuseki2 code, but not in fuseki1. Can
you please point me to its location in earlier version?

Also, editing Shiro.ini under webapp and then re tar, re war, would create
same Shiro.ini by default for first run of fuseki server, correct?

On Mon, 16 Dec, 2019, 7:45 AM Amandeep Srivastava, <
amandeep.srivastava1996@gmail.com> wrote:

> Thanks Andy, that's exactly what I was looking for.
>
> On Mon, 16 Dec, 2019, 2:02 AM Andy Seaborne, <an...@apache.org> wrote:
>
>> Hi,
>>
>> Do you want the same, modified shiro.ini in each server, or different
>> shiro files in each server?
>>
>> The shiro.ini can be altered in the war file. It's inside the
>> jena-fuseki-webapp jar (so war > jar > shiro.ini) and the war and jar
>> file can be modified.  Or unpack the whole war, change and repack.
>>
>>      Andy
>>
>>
>> On 15/12/2019 07:12, Laura Morales wrote:
>> > I think the shiro.ini configuration is configured like that on purpose,
>> you do not want anon access from every host by default. So I would guess
>> that that's unlikely to change.
>> > If you have only a few instances, just change the file for any of them
>> or copy/paste the same file. If you have too many, either create links or
>> maybe mount a shared folder.
>> >
>> >
>> >
>> >
>> >> Sent: Sunday, December 15, 2019 at 7:47 AM
>> >> From: "Amandeep Srivastava" <am...@gmail.com>
>> >> To: users@jena.apache.org
>> >> Subject: Re: Fuseki - Grant permissions to all by default
>> >>
>> >> Yes, I'm talking about Shiro.ini file, apologies if the question isn't
>> >> clear.
>> >>
>> >> I'm trying to deploy the fuseki server on multiple hosts, changing it
>> >> manually would mean manually logging into each of the hosts to do it.
>> >>
>> >> Also, its not necessary that I launch fuseki from same directory
>> everytime
>> >> since I can have multiple instances of it running, that means a new run
>> >> folder for every run and manually editing Shiro for each run too.
>> >>
>> >> On Sun, 15 Dec, 2019, 12:13 PM Laura Morales, <la...@mail.com>
>> wrote:
>> >>
>> >>> I think you're talking about the shiro.ini file but I don't think the
>> >>> question is very clear. What is the problem with editing one file
>> manually?
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>> Sent: Sunday, December 15, 2019 at 7:32 AM
>> >>>> From: "Amandeep Srivastava" <am...@gmail.com>
>> >>>> To: Users@jena.apache.org
>> >>>> Subject: Fuseki - Grant permissions to all by default
>> >>>>
>> >>>> Hi,
>> >>>>
>> >>>> I'm trying to run an instance of fuseki server. This run generates a
>> >>> folder
>> >>>> called 'run', containing all fuseki config files.
>> >>>>
>> >>>> I have to manually comment /$/** = localhostFilter and add
>> /$/**=anon to
>> >>>> access and query the database from UI.
>> >>>>
>> >>>> Is there a way to set this to default?
>> >>>>
>> >>>> Thanks.
>> >>>>
>> >>>
>> >>
>>
>

Re: Fuseki - Grant permissions to all by default

Posted by Amandeep Srivastava <am...@gmail.com>.
Thanks Andy, that's exactly what I was looking for.

On Mon, 16 Dec, 2019, 2:02 AM Andy Seaborne, <an...@apache.org> wrote:

> Hi,
>
> Do you want the same, modified shiro.ini in each server, or different
> shiro files in each server?
>
> The shiro.ini can be altered in the war file. It's inside the
> jena-fuseki-webapp jar (so war > jar > shiro.ini) and the war and jar
> file can be modified.  Or unpack the whole war, change and repack.
>
>      Andy
>
>
> On 15/12/2019 07:12, Laura Morales wrote:
> > I think the shiro.ini configuration is configured like that on purpose,
> you do not want anon access from every host by default. So I would guess
> that that's unlikely to change.
> > If you have only a few instances, just change the file for any of them
> or copy/paste the same file. If you have too many, either create links or
> maybe mount a shared folder.
> >
> >
> >
> >
> >> Sent: Sunday, December 15, 2019 at 7:47 AM
> >> From: "Amandeep Srivastava" <am...@gmail.com>
> >> To: users@jena.apache.org
> >> Subject: Re: Fuseki - Grant permissions to all by default
> >>
> >> Yes, I'm talking about Shiro.ini file, apologies if the question isn't
> >> clear.
> >>
> >> I'm trying to deploy the fuseki server on multiple hosts, changing it
> >> manually would mean manually logging into each of the hosts to do it.
> >>
> >> Also, its not necessary that I launch fuseki from same directory
> everytime
> >> since I can have multiple instances of it running, that means a new run
> >> folder for every run and manually editing Shiro for each run too.
> >>
> >> On Sun, 15 Dec, 2019, 12:13 PM Laura Morales, <la...@mail.com>
> wrote:
> >>
> >>> I think you're talking about the shiro.ini file but I don't think the
> >>> question is very clear. What is the problem with editing one file
> manually?
> >>>
> >>>
> >>>
> >>>
> >>>> Sent: Sunday, December 15, 2019 at 7:32 AM
> >>>> From: "Amandeep Srivastava" <am...@gmail.com>
> >>>> To: Users@jena.apache.org
> >>>> Subject: Fuseki - Grant permissions to all by default
> >>>>
> >>>> Hi,
> >>>>
> >>>> I'm trying to run an instance of fuseki server. This run generates a
> >>> folder
> >>>> called 'run', containing all fuseki config files.
> >>>>
> >>>> I have to manually comment /$/** = localhostFilter and add /$/**=anon
> to
> >>>> access and query the database from UI.
> >>>>
> >>>> Is there a way to set this to default?
> >>>>
> >>>> Thanks.
> >>>>
> >>>
> >>
>

Re: Fuseki - Grant permissions to all by default

Posted by Andy Seaborne <an...@apache.org>.
Hi,

Do you want the same, modified shiro.ini in each server, or different 
shiro files in each server?

The shiro.ini can be altered in the war file. It's inside the 
jena-fuseki-webapp jar (so war > jar > shiro.ini) and the war and jar 
file can be modified.  Or unpack the whole war, change and repack.

     Andy


On 15/12/2019 07:12, Laura Morales wrote:
> I think the shiro.ini configuration is configured like that on purpose, you do not want anon access from every host by default. So I would guess that that's unlikely to change.
> If you have only a few instances, just change the file for any of them or copy/paste the same file. If you have too many, either create links or maybe mount a shared folder.
> 
> 
> 
> 
>> Sent: Sunday, December 15, 2019 at 7:47 AM
>> From: "Amandeep Srivastava" <am...@gmail.com>
>> To: users@jena.apache.org
>> Subject: Re: Fuseki - Grant permissions to all by default
>>
>> Yes, I'm talking about Shiro.ini file, apologies if the question isn't
>> clear.
>>
>> I'm trying to deploy the fuseki server on multiple hosts, changing it
>> manually would mean manually logging into each of the hosts to do it.
>>
>> Also, its not necessary that I launch fuseki from same directory everytime
>> since I can have multiple instances of it running, that means a new run
>> folder for every run and manually editing Shiro for each run too.
>>
>> On Sun, 15 Dec, 2019, 12:13 PM Laura Morales, <la...@mail.com> wrote:
>>
>>> I think you're talking about the shiro.ini file but I don't think the
>>> question is very clear. What is the problem with editing one file manually?
>>>
>>>
>>>
>>>
>>>> Sent: Sunday, December 15, 2019 at 7:32 AM
>>>> From: "Amandeep Srivastava" <am...@gmail.com>
>>>> To: Users@jena.apache.org
>>>> Subject: Fuseki - Grant permissions to all by default
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to run an instance of fuseki server. This run generates a
>>> folder
>>>> called 'run', containing all fuseki config files.
>>>>
>>>> I have to manually comment /$/** = localhostFilter and add /$/**=anon to
>>>> access and query the database from UI.
>>>>
>>>> Is there a way to set this to default?
>>>>
>>>> Thanks.
>>>>
>>>
>>

Re: Fuseki - Grant permissions to all by default

Posted by Laura Morales <la...@mail.com>.
I think the shiro.ini configuration is configured like that on purpose, you do not want anon access from every host by default. So I would guess that that's unlikely to change.
If you have only a few instances, just change the file for any of them or copy/paste the same file. If you have too many, either create links or maybe mount a shared folder.




> Sent: Sunday, December 15, 2019 at 7:47 AM
> From: "Amandeep Srivastava" <am...@gmail.com>
> To: users@jena.apache.org
> Subject: Re: Fuseki - Grant permissions to all by default
>
> Yes, I'm talking about Shiro.ini file, apologies if the question isn't
> clear.
>
> I'm trying to deploy the fuseki server on multiple hosts, changing it
> manually would mean manually logging into each of the hosts to do it.
>
> Also, its not necessary that I launch fuseki from same directory everytime
> since I can have multiple instances of it running, that means a new run
> folder for every run and manually editing Shiro for each run too.
>
> On Sun, 15 Dec, 2019, 12:13 PM Laura Morales, <la...@mail.com> wrote:
>
> > I think you're talking about the shiro.ini file but I don't think the
> > question is very clear. What is the problem with editing one file manually?
> >
> >
> >
> >
> > > Sent: Sunday, December 15, 2019 at 7:32 AM
> > > From: "Amandeep Srivastava" <am...@gmail.com>
> > > To: Users@jena.apache.org
> > > Subject: Fuseki - Grant permissions to all by default
> > >
> > > Hi,
> > >
> > > I'm trying to run an instance of fuseki server. This run generates a
> > folder
> > > called 'run', containing all fuseki config files.
> > >
> > > I have to manually comment /$/** = localhostFilter and add /$/**=anon to
> > > access and query the database from UI.
> > >
> > > Is there a way to set this to default?
> > >
> > > Thanks.
> > >
> >
>

Re: Fuseki - Grant permissions to all by default

Posted by Amandeep Srivastava <am...@gmail.com>.
Yes, I'm talking about Shiro.ini file, apologies if the question isn't
clear.

I'm trying to deploy the fuseki server on multiple hosts, changing it
manually would mean manually logging into each of the hosts to do it.

Also, its not necessary that I launch fuseki from same directory everytime
since I can have multiple instances of it running, that means a new run
folder for every run and manually editing Shiro for each run too.

On Sun, 15 Dec, 2019, 12:13 PM Laura Morales, <la...@mail.com> wrote:

> I think you're talking about the shiro.ini file but I don't think the
> question is very clear. What is the problem with editing one file manually?
>
>
>
>
> > Sent: Sunday, December 15, 2019 at 7:32 AM
> > From: "Amandeep Srivastava" <am...@gmail.com>
> > To: Users@jena.apache.org
> > Subject: Fuseki - Grant permissions to all by default
> >
> > Hi,
> >
> > I'm trying to run an instance of fuseki server. This run generates a
> folder
> > called 'run', containing all fuseki config files.
> >
> > I have to manually comment /$/** = localhostFilter and add /$/**=anon to
> > access and query the database from UI.
> >
> > Is there a way to set this to default?
> >
> > Thanks.
> >
>

Re: Fuseki - Grant permissions to all by default

Posted by Laura Morales <la...@mail.com>.
I think you're talking about the shiro.ini file but I don't think the question is very clear. What is the problem with editing one file manually?




> Sent: Sunday, December 15, 2019 at 7:32 AM
> From: "Amandeep Srivastava" <am...@gmail.com>
> To: Users@jena.apache.org
> Subject: Fuseki - Grant permissions to all by default
>
> Hi,
>
> I'm trying to run an instance of fuseki server. This run generates a folder
> called 'run', containing all fuseki config files.
>
> I have to manually comment /$/** = localhostFilter and add /$/**=anon to
> access and query the database from UI.
>
> Is there a way to set this to default?
>
> Thanks.
>