-
Bug
-
Resolution: Fixed
-
P3
-
1.3.1, 1.4.0, 1.4.1, 1.4.2
-
b57
-
generic
-
generic
Name: smR10189 Date: 11/18/2003
To create FilePermission object two parameters are passed to the constructor.
The first parameter is a path to a file or directory. The second parameter
is a list of requested actions. The spec shows how to specify a path for
directory using special tokens and also it enumerates "possible actions".
But the spec doesn't define an implementation behavior if:
- the first parameter is null or empty string.
- second parameter is null or empty string.
- a list of requested actions contains actions that differ from
"possible actions" described by the spec.
See, API spec for java.io.FilePermission constructor below:
public FilePermission(String path, String actions)
Creates a new FilePermission object with the specified actions. path is the
pathname of a file or directory, and actions contains a comma-separated
list of the desired actions granted on the file or directory. Possible
actions are "read", "write", "execute", and "delete".
A pathname that ends in "/*" (where "/" is the file separator character,
File.separatorChar) indicates a directory and all the files contained in
that directory. A pathname that ends with "/-" indicates a directory and
(recursively) all files and subdirectories contained in that directory.
The special pathname "<<ALL FILES>>" matches all files.
A pathname consisting of a single "*" indicates all the files in the
current directory, while a pathname consisting of a single "-" indicates
all the files in the current directory and (recursively) all files and
subdirectories contained in the current directory.
Parameters:
path - the pathname of the file/directory.
actions - the action string.
======================================================================
To create FilePermission object two parameters are passed to the constructor.
The first parameter is a path to a file or directory. The second parameter
is a list of requested actions. The spec shows how to specify a path for
directory using special tokens and also it enumerates "possible actions".
But the spec doesn't define an implementation behavior if:
- the first parameter is null or empty string.
- second parameter is null or empty string.
- a list of requested actions contains actions that differ from
"possible actions" described by the spec.
See, API spec for java.io.FilePermission constructor below:
public FilePermission(String path, String actions)
Creates a new FilePermission object with the specified actions. path is the
pathname of a file or directory, and actions contains a comma-separated
list of the desired actions granted on the file or directory. Possible
actions are "read", "write", "execute", and "delete".
A pathname that ends in "/*" (where "/" is the file separator character,
File.separatorChar) indicates a directory and all the files contained in
that directory. A pathname that ends with "/-" indicates a directory and
(recursively) all files and subdirectories contained in that directory.
The special pathname "<<ALL FILES>>" matches all files.
A pathname consisting of a single "*" indicates all the files in the
current directory, while a pathname consisting of a single "-" indicates
all the files in the current directory and (recursively) all files and
subdirectories contained in the current directory.
Parameters:
path - the pathname of the file/directory.
actions - the action string.
======================================================================