CERT-Polska / hsn2-commons-python-lib

2 stars 0 forks source link

retrieval of pervious version of workflow with console corrupts git workflow repos #4

Open svanachterbergh opened 11 years ago

svanachterbergh commented 11 years ago

Using the VM from the HSN2 website, when retrieving a previous version of a workflow with the command:

hc workflow get simple cdff7d01f138d3d4362a738abe4b3511d7043c02

and stopping and starting the framework with stop_hsn.sh and start_hsn.sh gives the following error in framework.log

2013-04-04 13:54:30,713 [main] ERROR pl.nask.hsn2.framework.core.Main - Cought: pl.nask.hsn2.framework.configuration.ConfigurationException: Something is wrong with workflow repository. Is the path valid? : /etc/hsn2/workflows/ at pl.nask.hsn2.framework.core.Main.initWorkflowManager(Main.java:139) at pl.nask.hsn2.framework.core.Main.start(Main.java:100) at pl.nask.hsn2.framework.core.Main.main(Main.java:81) Caused by: pl.nask.hsn2.framework.workflow.repository.WorkflowRepoException: Git repository is not clean, so is invalid at pl.nask.hsn2.framework.workflow.repository.GitWorkflowRepository.validateGitRepo(GitWorkflowRepository.java:135) at pl.nask.hsn2.framework.workflow.repository.GitWorkflowRepository.(GitWorkflowRepository.java:96) at pl.nask.hsn2.framework.core.Main.initWorkflowManager(Main.java:137) ... 2 more 2013-04-04 13:54:30,737 [main] INFO pl.nask.hsn2.framework.core.Main - Framework stopped. 2013-04-04 13:54:30,741 [Thread-1] INFO pl.nask.hsn2.framework.core.Main - Framework stopped.

This causes the framework to refuse to start. Also without stopping and starting the framework, no error or problem appears untill uploading an update of a workflow, see issue #3

radoslawl commented 10 years ago

this is a bug in framework. see: https://github.com/CERT-Polska/hsn2-framework/issues/16