Task #11464 (closed)
Opened 11 years ago
Closed 11 years ago
Bug: Use os.path.basename on script Param path/names
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | blocker | Milestone: | OMERO-4.4.9 |
Component: | Scripting | Version: | n.a. |
Keywords: | n.a. | Cc: | bpindelski, jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Any time a script parameter asks for a file name, E.g. In Figure scripts etc we have to check that it is a name only (doesn't have a path) since this path could lead to the file being written anywhere on the server machine (potentially overwriting other files).
Best to use os.path.basename(filename).
Need to check all our official scripts etc and keep it in mind for validating other scripts.
Change History (1)
comment:1 Changed 11 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
https://github.com/ome/scripts/pull/39