jbrowse icon indicating copy to clipboard operation
jbrowse copied to clipboard

Deals with ACLs

Open FredericBGA opened this issue 3 years ago • 5 comments

-d and -w test operators do not seem to respect the acls. use filetest pragma

FredericBGA avatar Dec 01 '20 09:12 FredericBGA

@FredericBGA will this affect the minimum version of Perl that the tools require?

rbuels avatar Dec 01 '20 20:12 rbuels

this also is only applied to IndexNames e.g. generate-names...is it something that needs distributing more widely?

more reading on filetest here https://perldoc.perl.org/filetest

cmdcolin avatar Dec 01 '20 21:12 cmdcolin

I also wonder: what was the error before this change was added? Was it unable to write things it should have been able to write to?

cmdcolin avatar Dec 01 '20 21:12 cmdcolin

The error was:

Output directory '.' is not writable. at /softs/bioinfo/jbrowse-1.16.10-release/bin/../src/perl5/Bio/JBrowse/ConfigurationManager.pm line 7. Bio::JBrowse::ConfigurationManager::ANON("Output directory '.' is not writable.\x{a}") called at /softs/bioinfo/jbrowse-1.16 .10-release/bin/../src/perl5/Bio/JBrowse/Cmd/IndexNames.pm line 73 Bio::JBrowse::Cmd::IndexNames::run(Bio::JBrowse::Cmd::IndexNames=HASH(0x2624f30)) called at /softs/bioinfo/jbrowse/bin/generate- names.pl line 8

but the directory was indeed writable due to ALCs. I don't know if this should be applied more widely. We use JBrowse a lot and we didn't notice anything else that looks related. Regarding the Perl minimun version, I don't know... We have v5.10.1. filetest seems to exist since Perl 5.6.0: https://metacpan.org/pod/release/GSAR/perl-5.6.0/lib/filetest.pm

FredericBGA avatar Dec 02 '20 07:12 FredericBGA

seems like this should be ok. it does say in the docs here https://perldoc.perl.org/filetest to consider this carefully, but if it helps and doesn't have side effects then it seems good

cmdcolin avatar Dec 02 '20 18:12 cmdcolin