You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/23 09:37:00 UTC

[jira] [Work logged] (TOMEE-2968) Postgres connection error when a password contains "}"

     [ https://issues.apache.org/jira/browse/TOMEE-2968?focusedWorklogId=556244&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-556244 ]

ASF GitHub Bot logged work on TOMEE-2968:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Feb/21 09:36
            Start Date: 23/Feb/21 09:36
    Worklog Time Spent: 10m 
      Work Description: rzo1 opened a new pull request #763:
URL: https://github.com/apache/tomee/pull/763


   # What does this PR do?
   
   - Adds unit tests to reproduce TOMEE-2968 (also affects 7.0.x and 7.1.x)
   - Single opening curly braces are stripped away in property values as we treat them as suffix placeholders (even in the case, we did not have an opening curly brace). PR proposes a related fix.
   
   # References
   
   - https://issues.apache.org/jira/browse/TOMEE-2968
   - https://markmail.org/message/vxmm7t5sl33zr4wq
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 556244)
    Remaining Estimate: 0h
            Time Spent: 10m

> Postgres connection error when a password contains "}"
> ------------------------------------------------------
>
>                 Key: TOMEE-2968
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2968
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.5, 8.0.0-Final, 7.1.4, 8.0.6
>         Environment: Windows 10
>            Reporter: Alex Levin
>            Assignee: Richard Zowalla
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If a password contains the "}" character (closing curly brace), the database connection cannot be established.
> My resources.xml:
> <Resource id="Postgres Databse" type="javax.sql.DataSource">
>     jdbcDriver org.postgresql.Driver
>     jdbcUrl jdbc:postgresql://localhost:5432/postgresdb
>     username scott
>     password tiger...}
>     maxActive = 250
> </Resource>
> Error message in the log:
> 2021-02-02 15:55:45 WARN [main] SqlExceptionHelper:144 - SQL Error: 0, SQLState: 28P01
> 2021-02-02 15:55:45 ERROR [main] SqlExceptionHelper:146 - FATAL: password authentication failed for user "scott"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)