commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.04k stars 142 forks source link

Fix: Parse url with encoded hash in password #275

Closed ftes closed 11 months ago

ftes commented 1 year ago

Actual

# config.exs
config :my_app, MyApp.EventStore,
  url: "postgres://username:password%23with_hash@localhost/database"

Error: path should be a database name

Expected

No error, connects to database with decoded password password#with_hash.

Details

URI was decoded twice: parser.ex:42 and parser.ex:71