An error has occurred page while downloading mars of baseline test in DevTest Portal

book

Article ID: 205613

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

When we download mar file for baseline testcases in DevTest Portal, very frequent we see, an error has occurred page.

When issue is replicated can see below error in reshub log:

2020-10-16 11:13:59,046Z (16:43) [qtp879425411-303139] ERROR org.grails.web.errors.GrailsExceptionResolver - IllegalStateException occurred when processing request: [GET] /res-hub/v1/projects/byi4GNG1C3yNR3bS/Tests/biarv7Y8PizGYXURiXwu0yfynmAs0TS8Y-G9
STREAM. Stacktrace follows:
java.lang.reflect.InvocationTargetException
 at com.ca.lisa.test.TestsCategoryController.show(TestsCategoryController.groovy:48)
 at org.grails.core.DefaultGrailsControllerClass$MethodHandleInvoker.invoke(DefaultGrailsControllerClass.java:223)

 

2020-10-16 11:13:59,051Z (16:43) [qtp879425411-303139] ERROR com.ca.lisa.resHub.ErrorController - STREAM
java.lang.IllegalStateException: STREAM
 at org.eclipse.jetty.server.Response.getWriter(Response.java:891)
 at org.springframework.boot.web.support.ErrorPageFilter$ErrorWrapperResponse.getWriter(ErrorPageFilter.java:374)

Cause

Upon further investigation of the project Bank v5, the issue was found.

There is a _quick_stage_document_.stg  file under "Bank v5/Tests/StagingDocs/".

While downloading the Baseline test mar, DevTest creates the staging file with the same name "_quick_stage_document_.stg" and because of duplicate entry it's failing to download (create a project + archive them in Mar + Stream out to client).

Environment

Release : 10.6

Component : CA Application Test

Resolution

If we  rename or remove the file  _quick_stage_document_.stg from "Bank v5/Tests/StagingDocs/" and refreshing the project in Portal, we can download any test MAR without issues.