Skip to content

[Bug][JIRA Service API TOKEN] Jira API Gateway: saved service-account token truncated by varchar(255), causing Base64 errors and HTTP 500 #9328

Open

Description

@Daniel-alisi

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Jira Cloud connections using Atlassian API Gateway and a scoped service-account API token pass Test Connection, but fail after saving.

The issue reproduced in both development and production. Widening the database’s token column to LONGTEXT and recreating the affected connection resolved it.

Version / environment

DevLake backend: v1.0.3-beta17
Config UI: v1.0.3-beta17
Deployment: AWS ECS Fargate
Database: MySQL-compatible, InnoDB, utf8mb4
Connector: Jira Cloud (Atlassian API Gateway)
Authentication: scoped Atlassian service-account API token (AccessToken)

What do you expect to happen

illegal base64 data at input byte 252
Wraps: (2) illegal base64 data at input byte 252
Error types: (1) *hintdetail.withDetail (2) base64.CorruptInputError

How to reproduce

Steps to reproduce

Create a Jira connection.
Select Jira Cloud (Atlassian API Gateway).
Enter a valid site Cloud ID and scoped service-account token.
Click Test Connection—it succeeds.
Save the connection.
Open Add Data Scopes or reload Jira connections.

Anything else

No response

Version

DevLake backend: v1.0.3-beta17

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. RyoKusnadi commented on Nov 4, 2026

    @RyoKusnadi
    Contributor

    @klesh I opened #9335 for this. Could you please review it when you have a moment? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThis issue is a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions