Ticket #1302 (closed: fixed)
Modify FileValidator extension checking to be more generic
Reported by: | Peter Peterson | Owned by: | Peter Peterson |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 24 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: | Janik Zikovsky |
Description
Rather than looking for the extension to be the stuff after the final ".", have it look for the file ending. This way things that have double extensions (i.e. .tar.gz, .hdf.nxs) as well as extensions that don't start with "." (i.e. _neutron_event.dat, _pulseid.dat) can be matched against. The functionality is similar to python's endswith is the correct analogy. For filters that still want to have an extension start with a ".", they can just add it to the specification of the filter. Most users won't notice that the "." is no longer required.
Change History
comment:1 Changed 10 years ago by Peter Peterson
- Owner set to Peter Peterson
- Status changed from new to accepted
comment:7 Changed 10 years ago by Peter Peterson
- Status changed from accepted to testing
- Resolution set to fixed
The last ticket resolved the issue.
comment:9 Changed 10 years ago by Peter Peterson
- Status changed from testing to reopened
- Resolution fixed deleted
This generates a bunch of warnings along the lines of FileValidator-[Warning] Unrecognized extension in file "".
comment:11 Changed 10 years ago by Peter Peterson
comment:12 Changed 10 years ago by Peter Peterson
This has spawned a new ticket for the GUI #1336.
comment:13 Changed 10 years ago by Peter Peterson
- Status changed from accepted to testing
- Resolution set to fixed
The work for this appears to be done.
comment:14 Changed 10 years ago by Nick Draper
- Status changed from testing to verify
Moved to verify state
comment:15 Changed 10 years ago by Janik Zikovsky
- Status changed from verify to verifying
- Tester set to Janik Zikovsky
comment:16 Changed 10 years ago by Janik Zikovsky
comment:18 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2149