Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11636 (new)

Opened 10 years ago

Last modified 8 years ago

API for file path sanitization

Reported by: mtbcarroll Owned by: mtbcarroll
Priority: minor Milestone: Unscheduled
Component: OmeroFs Version: n.a.
Keywords: n.a. Cc: fs@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Since https://github.com/openmicroscopy/openmicroscopy/pull/1109 the rules for how file paths must be sanitized for import are a server configuration option. However, ImportLibrary.createImport just guesses at what the server will accept.

One could add a server API method that actually tells what the rules are, and then the client could query and apply them in creating the proposed FilesetEntrys, thus sanitizing exactly as much as necessary for the current setting of omero.fs.repo.path_rules.

(Or, if preferred, the client could attempt without sanitization, and use the detail of the resulting FilePathNamingException from importFileset to fix accordingly in iterative attempts.)

Change History (2)

comment:1 Changed 10 years ago by mtbcarroll

Further, a String → String API method could be offered that does sanitization according to the current server configuration, allowing clients to easily offer some kind of interactive management of adjustments to paths.

comment:2 Changed 8 years ago by jamoore

  • Milestone changed from 5.x to Unscheduled
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.68531 sec.)

We're Hiring!