GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — INSERT into sharedservers table fails when using Docker deploy with a custom Postgres 13 database · Issue #5535 · pgadmin-org/pgadmin4

INSERT into sharedservers table fails when using Docker deploy with a custom Postgres 13 database #5535

New issue
Copy link
New issue
Copy link
Closed
Closed
INSERT into sharedservers table fails when using Docker deploy with a custom Postgres 13 database#5535
Copy link
Assignees
pravesh-sharma
Labels
Bug
Milestone
6.16

Description

@countessellis
countessellis
opened on Nov 16, 2022
Issue body actions

I'm using the newest snapshot for dpage/pgadmin4 in Kubernetes, with a custom Postgres 13 database for a backend. This functionality isn't in 6.15, the newest stable image, hence using the snapshot. Everything seems to work fine except for sharing servers. When I set a server as shared, INSERT fails with the following error:

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DatatypeMismatch) column "save_password" is of type boolean but expression is of type integer --

It looks like save_password is a bool in the sharedserver table but an int in the server table, and it's trying to insert into both as an int:

'save_password': 1

I wasn't sure if I should submit this as an issue to this repo or to dpage/pcadmin4 in github, so if I'm submitting it to the wrong repo, I apologize in advance.

Activity

  1. countessellis commented on Nov 16, 2022

    @countessellis
    countessellis
    on Nov 16, 2022
    Author
    More actions

    When I alter the column to integer, sharing the cluster is successful.

  2. akshay-joshi
    added this to the 6.16 milestone on Nov 16, 2022
  3. akshay-joshi
    added this to Current Sprint (213)on Nov 16, 2022
  4. akshay-joshi
    self-assigned this
    on Nov 16, 2022
  5. akshay-joshi
    added
    Bug
    EDB Sprint 129
    on Nov 16, 2022
  6. akshay-joshi
    moved this to 🏗 In Progress in Current Sprint (213)on Nov 16, 2022
  7. akshay-joshi
    added a commit that references this issue on Nov 16, 2022

    1) Fixed an issue where the 'save_password' column threw an error for…

    7491387
  8. akshay-joshi
    moved this from 🏗 In Progress to In Testing in Current Sprint (213)on Nov 16, 2022
  9. akshay-joshi
    assigned
    FaharAbbasRizvi
    and unassigned
    akshay-joshi
    on Nov 16, 2022
  10. akshay-joshi
    added a commit that references this issue on Nov 17, 2022

    1) Fixed an issue where the 'save_password' column threw an error for…

    1535039
  11. pravesh-sharma
    assigned
    pravesh-sharma
    and unassigned
    FaharAbbasRizvi
    on Nov 17, 2022
  12. pravesh-sharma commented on Nov 17, 2022

    @pravesh-sharma
    pravesh-sharma
    on Nov 17, 2022
    Contributor
    More actions

    While testing found this an issue -
    If user tries to save password with external database config it throws error.

    Steps to reproduce -

    1. Setup external config database
    2. Try connecting to any database server and select save password
    3. Disconnect from the connected server and try connecting again, it will open the password prompt with an error

    Attached screenshot for reference
    Screenshot 2022-11-17 at 2 05 36 PM

  13. adityatoshniwal
    added a commit that references this issue on Nov 17, 2022

    Handle saved password binary text for PostgreSQL. pgadmin-org#5535

    93ffac3
  14. akshay-joshi
    moved this from In Testing to 🏗 In Progress in Current Sprint (213)on Nov 17, 2022
  15. akshay-joshi
    added a commit that references this issue on Nov 17, 2022

    Handle saved password binary text for PostgreSQL when used as an exte…

    a483734
  16. akshay-joshi
    moved this from 🏗 In Progress to In Testing in Current Sprint (213)on Nov 17, 2022
  17. pravesh-sharma commented on Nov 18, 2022

    @pravesh-sharma
    pravesh-sharma
    on Nov 18, 2022
    Contributor
    More actions

    This issue is fixed.

    Verified on docker container with external database for configuration.
    Docker image used - https://hub.docker.com/layers/dpage/pgadmin4/2022-11-17-1/images/sha256-c208524cc9e54f6b901a22ee4a1266ebf03d2626ba2f1815028ca80a89d4cdd8?context=explore

  18. pravesh-sharma
    moved this from In Testing to ✅ Done in Current Sprint (213)on Nov 18, 2022
  19. FaharAbbasRizvi
    closed this as completedon Nov 18, 2022
  20. akshay-joshi
    removed this from Current Sprint (213)on Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pravesh-sharma
    pravesh-sharma

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 6.16

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.