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

Web UI fails to parse password with equals symbol on Migrate #643

Open
joshbautista opened this issue Sep 26, 2023 · 1 comment
Open

Web UI fails to parse password with equals symbol on Migrate #643

joshbautista opened this issue Sep 26, 2023 · 1 comment

Comments

@joshbautista
Copy link

joshbautista commented Sep 26, 2023

Expected Behavior

When clicking Migrate on the final page, SMT should start the migration.

Actual Behavior

When clicking Migrate on the final page, SMT throws an error, displaying sensitive info in plaintext:

Can't get source and target profiles: error while preparing prerequisites for migration: could not parse source-profile, error =
invalid key=value pair (expected format: key1 =value1):
password=this=isvalid
smt-web-pw-parse-error

Steps to Reproduce the Problem

  1. Create a PostgreSQL user with appropriate SMT permissions that has an equals = symbol in its password (e.g. this=isvalid)
  2. Use that user during the initial Connect to Database screen
  3. Go through the migration steps to the last page (doesn't matter if it's a POC or Low Downtime Migration)
  4. Click Migrate

Specifications

  • Version: v3.1.1
  • Platform:
# Server running SMT
> uname -a
Linux <redacted> 4.19.0-18-cloud-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux

> go version
go version go1.21.0 linux/amd64

# Browser
Chrome Version 117.0.5938.92 (Official Build) (x86_64) on MacOS 13.5.2
@bharadwaj-aditya
Copy link
Collaborator

We'll look into this and get back.

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

2 participants