BS-6931
Fix npe
BS-7163
Handle write permissions when exporting an artifact
fix tests
Fix handler isEnabled NPE in e4
Merge branch 'master' into 'BS-6898_Test_postgres_on_tomcat7'