Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Double stringification of conditions column values on the admin_permissions table. #39

@ConradP

Description

@ConradP

Bug report

Required System information

  • Node.js version: 14.20.0
  • NPM version: 6.14.17
  • Source Strapi version: 3.6.8
  • Target Strapi version: 4.3.6
  • Source Database: sqlite or mysql (verified on both)
  • Target Database: sqlite or mysql (verified on both)
  • Operating system: Ubuntu 22.04 LTS
  • Which script are you running: v3-sql-v4-sql

Describe the bug

The conditions values in the admin_permissions tables are improperly formatted after running the migration script, this causes application crashes for admin users assigned to any role created pre-migration besides the super admin.

Steps to reproduce the behavior

  • create a quickstart v3 project
  • add an admin user to the project, assign them the editor or author role
  • create a quickstart v4 project
  • migrate the database from v3 to v4 using the migration script configured for the sqlite databases
  • start the v4 application
  • log in to the dashboard as the created user
  • dashboard will crash and 500 errors observed on the server side

Expected behavior

The dashboard does not crash and the server does not error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: v3-SQL to v4-SQLstatus: confirmedConfirmed by a Strapi Team member or multiple community members

    Type

    No type

    Projects

    Status

    Fixed/Shipped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions