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

Unable to view structure of Data Tables with uppercase character in the name (PostgreSQL DB) #363

Open
j-pillon opened this issue Jul 17, 2023 · 0 comments

Comments

@j-pillon
Copy link

Concerto Platform version

5.0.27

Expected behavior

View structure of Data Tables with PostgreSQL database.

Actual behavior

Unable to view the structure of Data Tables with an uppercase character in the name with PostgreSQL database.

Steps to reproduce the issue

  1. Deployment with direct installation ("bare-metal")
    Environment :
  • AlmaLinux 8.8
  • Apache 2.4.37
  • PHP-FPM 7.4.33
  • R 4.3.1
  • PostgreSQL 13.11
  1. Import Concerto starter content

  2. Connect and visit tab "Data Table", "Starter Content"

  3. Edit Data Table with uppercase character (e.g. "translationDictionary", "assessmentItems", ...)

  • DataTable Structure table is empty
  • DataTable columnsCollectionAction route return an empty JSON
    http://<server>/admin/DataTable/<DataTable name>/columns/collection
  1. Edit Data Table without uppercase character (e.g. "users", "sessions", ...)
  • DataTable Structure table is filled
  • DataTable columnsCollectionAction route return a filled JSON
    http://<server>/admin/DataTable/<DataTable name>/columns/collection

The problem come from character case of the DataTable identifier. The getListTableColumnsSQL function in Doctrine PostgreSqlPlatform class is case sensible.

Workaround

  • Rename existing DataTable or name new DataTable with lowercase characters or snake_case.
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

No branches or pull requests

1 participant