A possible bug with fileaccess.cfg

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

A possible bug with fileaccess.cfg

Post by Yukiko »

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.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: A possible bug with fileaccess.cfg

Post by Turley »

Mmmh can you post the content of the pkg.cfg where the command exists in?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko »

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
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko »

Nothing new on this yet Turley?
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: A possible bug with fileaccess.cfg

Post by Turley »

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: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko »

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.
Nando
POL Developer
Posts: 282
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: A possible bug with fileaccess.cfg

Post by Nando »

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: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko »

I can but with the wildcard * in the Package element it worked with a Directory element. Will get back to you with a report.
Nando
POL Developer
Posts: 282
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: A possible bug with fileaccess.cfg

Post by Nando »

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: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko »

Now that you mention it I remember seeing that comment in the fileaccess.cfg file.
:)
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: A possible bug with fileaccess.cfg

Post by Yukiko »

Maybe this should be looked at and fixed if possible before we finalize POL 0.99.
Post Reply