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

SVG file upload - fatal error :1:1: content is not allowed in prolog #1707

Open
twodulls opened this issue Jul 26, 2023 · 2 comments · May be fixed by #1777
Open

SVG file upload - fatal error :1:1: content is not allowed in prolog #1707

twodulls opened this issue Jul 26, 2023 · 2 comments · May be fixed by #1777

Comments

@twodulls
Copy link

I call the API to upload the SVG file as follows: RestAssured(5.3.1)

given()
.multiPart("files", file, mimeType)
.when()
.post("/contents/upload")
.then()
.extract().response();

The test succeeds however it logs the following to console:

[Fatal Error] :1:1: Content is not allowed in prolog.

The File upload was successful and the image nothing wrong.
I want to know why an error occurred.

thanks

@TheConen
Copy link

I'm having the same problem - multipart request with a perfectly fine and valid XML file logs that error. Did you find a solution?

beng9re added a commit to beng9re/rest-assured that referenced this issue Mar 23, 2024
beng9re added a commit to beng9re/rest-assured that referenced this issue Mar 23, 2024
beng9re added a commit to beng9re/rest-assured that referenced this issue Mar 23, 2024
@beng9re
Copy link

beng9re commented Mar 23, 2024

I've added fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants