Skip to content

[Bug]: On application update using API docker_compose_raw is required to be base64 but is not decoded #6047

Open
@tm1000

Description

@tm1000

Error Message and Logs

Using API update-application-by-uuid docker_compose_raw is now required to be base64 encoded through the API, if its not you get an error. All fine and good except when you run PATCH against an application with docker_compose_raw base64 encoded that value is not decoded at any point so the application's compose file just shows base64 encoded data

Steps to Reproduce

> PATCH /api/v1/applications/s88s8o40s04sccscoco8gw8w HTTP/2
> Host: [redacted]
> content-type: application/json
> user-agent: insomnia/11.0.2
> authorization: Bearer [redacted]
> accept: */*
> content-length: 189

* TLSv1.2 (OUT), TLS header, Supplemental data (23):

| {
| 	"docker_compose_raw": "dmVyc2lvbjogJzMnCnNlcnZpY2VzOgogICAgd2ViOgogICAgICAgIGltYWdlOiBuZ2lueAogICAgICAgIHBvcnRzOgogICAgICAgIC0gIjgwODA6ODAiCiAgICByZWRpczoKICAgICAgICBpbWFnZTogcmVkaXM="
| }

Results in:

Image

Example Repository URL

No response

Coolify Version

v4.0.0-beta.419

Are you using Coolify Cloud?

Yes (Coolify Cloud)

Operating System and Version (self-hosted)

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugReported issues that need to be reproduced by the team.🔍 TriageIssues that need assessment and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions