Skip to content

fix(rest-assured): handle non-string form params in request attachments#1256

Merged
baev merged 1 commit intomainfrom
fix-rest-assured
Apr 1, 2026
Merged

fix(rest-assured): handle non-string form params in request attachments#1256
baev merged 1 commit intomainfrom
fix-rest-assured

Conversation

@baev
Copy link
Copy Markdown
Member

@baev baev commented Mar 31, 2026

This fixes a regression in allure-rest-assured where request attachment generation could fail with a ClassCastException when a form parameter value was not already a String, such as a List. The fix keeps the change narrow by normalizing form param values to strings inside AllureRestAssured before they are passed into HttpRequestAttachment, so the actual request execution path remains unchanged.

fixes #1025

Context

Checklist

@baev baev force-pushed the fix-rest-assured branch from 170b300 to a448a28 Compare March 31, 2026 18:51
@baev baev added the type:bug Something isn't working label Mar 31, 2026
@baev baev merged commit c1957f0 into main Apr 1, 2026
6 of 7 checks passed
@baev baev deleted the fix-rest-assured branch April 1, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme:rest-assured type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞: RestAssured - When sending a list for a formParam parameterValues, you will get "class java.util.LinkedList cannot be cast to class java.lang.String".

2 participants