Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project archive with incomplete execution causes error on import #430

Closed
gschueler opened this issue Jun 20, 2013 · 1 comment
Closed

Project archive with incomplete execution causes error on import #430

gschueler opened this issue Jun 20, 2013 · 1 comment
Labels
Milestone

Comments

@gschueler
Copy link
Member

If a project archive was created while an execution was running, then imported, it will cause the following error:

ERROR GrailsExceptionResolver: Exception occurred when processing request: [POST] /project/importArchive
Stacktrace follows:
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '' with class 'java.lang.String' to class 'java.util.Date'
        at com.dtolabs.rundeck.app.support.BaseNodeFilters.setProperty(BaseNodeFilters.groovy)
        at rundeck.Execution.fromMap(Execution.groovy:164)
        at rundeck.Execution$fromMap.call(Unknown Source)
        at rundeck.services.ProjectService$_loadExecutions_closure6.doCall(ProjectService.groovy:183)
        at rundeck.services.ProjectService.loadExecutions(ProjectService.groovy:171)
        at rundeck.services.ProjectService$_importToProject_closure12.doCall(ProjectService.groovy:360)
        at rundeck.services.ProjectService.importToProject(ProjectService.groovy:359)
        at rundeck.services.ProjectService$importToProject.call(Unknown Source)
        at rundeck.controllers.ProjectController$_closure2.doCall(ProjectController.groovy:83)
        at rundeck.controllers.ProjectController$_closure2.doCall(ProjectController.groovy)
@gschueler
Copy link
Member Author

Workaround is to unpack the archive, find the execution.xml which has an empty dateCompleted tag, and change it to a valid date. Repack the archive and upload.

gschueler added a commit that referenced this issue Jul 22, 2013
* create ExecReports for executions that have no associated report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant