Bug 1566944 - cpdb does not handle special characters in its parameters
Summary: cpdb does not handle special characters in its parameters
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: candlepin-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-13 08:12 UTC by Ales Dujicek
Modified: 2023-11-22 15:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-22 15:06:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Ales Dujicek 2018-04-13 08:12:00 UTC
Description of problem:

for example ampersand in password causes cpdb to fail when cpdb calls liquibase

# cpdb --create --schema-only --dbhost=localhost --dbport=5432 --database='candlepin1db' --user='candlepin1' --password='c&ndlepin1pw'

########## ERROR ############
Error running command: liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-create.xml --url=jdbc:postgresql://localhost:5432/candlepin1db --username=candlepin1 --password=c&ndlepin1pw --logLevel=severe migrate -Dcommunity=False
Status code: 32512
Command output: sh: ndlepin1pw: command not found
Errors:
  Command not passed

the problem is 

Version-Release number of selected component (if applicable):
candlepin-2.1.14-1.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. use special character in --database --user or --password parameter of cpdb

Comment 3 Nikos Moumoulidis 2023-11-22 15:06:16 UTC
Thank you for your interest in Candlepin. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the project, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to open a new bug with more up to date details. Thank you.


Note You need to log in before you can comment on or make changes to this bug.