A possible bug with fileaccess.cfg

Bug reports and feature requests.
Post Reply
Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

A possible bug with fileaccess.cfg

Post by Yukiko » Sat Apr 29, 2017 5:56 pm

As I understand it, you are supposed to be able to specify which package can perform whatever functions you give them rights to. So I made the following entry:

Code: Select all

FileAccess Commands
{
	Package		commands
	Extension		.cfg
	AllowRead		1
	AllowRemote	1
	AllowWrite	1
	AllowAppend	1
}

I have a command in the ..\commands\test directory which needs access to the POL root directory to create a folder there and write cfg files in it. However with the above entry the command can create the directory but it can't create any files in the directory. If I change the entry in fileaccess.cfg to:


Code: Select all

FileAccess Commands
{
	Package		*
	Extension		cfg
	AllowRead		1
	AllowRemote	1
	AllowWrite	1
	AllowAppend	1
}

It works but I'd rather not give universal access for cfg file creation.

So the question is: Am I doing something wrong or is this a bug (feature :) ) of POL?
Last edited by Yukiko on Mon May 08, 2017 4:25 pm, edited 1 time in total.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Turley
POL Developer
Posts: 623
Joined: Sun Feb 05, 2006 4:45 am

Re: A possible bug with fileaccess.cfg

Post by Turley » Sun Apr 30, 2017 2:09 am

Mmmh can you post the content of the pkg.cfg where the command exists in?

Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko » Mon May 01, 2017 1:56 pm

Here's the pkg.cfg. It's pretty much copied from Austin's 0.96 or 0.97 Distro. Now the actual command lives in a subdirectory, 'test', under the 'commands' directory but none of the subdirectories there contain any pkg.cfg files.

Code: Select all

# $Id: pkg.cfg 373 2006-06-17 18:27:33Z austinheilman $
#
#
Enabled		1
Name		commands
Version		1.0

CoreRequired	96

Maintainer	Distro Team
Email		distro@polserver.com
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko » Mon May 08, 2017 4:26 pm

Nothing new on this yet Turley?
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Turley
POL Developer
Posts: 623
Joined: Sun Feb 05, 2006 4:45 am

Re: A possible bug with fileaccess.cfg

Post by Turley » Wed May 10, 2017 1:51 am

Sorry I'm currently working for 2 weeks in Japan. I think I have to test it myself to understand the problem. Currently it's a bit unclear why this happens, maybe a bug in the core or we oversee something.

Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko » Wed May 10, 2017 11:44 pm

How can you let work get in the way of POL? :)

Ok. It's not a showstopper bug for me because I only need to have access to the folder for a one time script. Then I can remove the file access rights but I thought you should be aware of it.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Nando
POL Developer
Posts: 251
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: A possible bug with fileaccess.cfg

Post by Nando » Thu May 11, 2017 2:36 pm

If I remember correctly, you also can define a Directory for the Fileaccess. By default it only allows inside the package you named...

Could you check if that's the case?

Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko » Thu May 11, 2017 11:19 pm

I can but with the wildcard * in the Package element it worked with a Directory element. Will get back to you with a report.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Nando
POL Developer
Posts: 251
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: A possible bug with fileaccess.cfg

Post by Nando » Thu May 11, 2017 11:34 pm

Oh, sorry. I just checked the code: the Directory flag is not implemented yet. I'll have to look into it with more time later...

Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko » Thu May 11, 2017 11:38 pm

Now that you mention it I remember seeing that comment in the fileaccess.cfg file.
:)
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Yukiko
Distro Developer
Posts: 2193
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko » Thu Aug 31, 2017 10:02 am

Maybe this should be looked at and fixed if possible before we finalize POL 0.99.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest