Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

DBUtil.isBuiltinDB() returns true when database isn't the builtin

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 4.6.5
  • Component/s: Deprecated: Database
  • Case Links:
    none
  • Regression:
    No
  • Tags:

Description

isBuiltinDB() checks for the beginning of the url and the db but doesn't check the port. If a url is configured as jdbc:postgresql://127.0.0.1:5432/hqdb?protocolVersion=2 it will return true even though the default port for builtin db is 9432.

Activity

Hide
Wes Schlichter added a comment -

workaround would be to change the url to jdbc:postgresql://localhost:5432/hqdb?protocolVersion=2

Show
Wes Schlichter added a comment - workaround would be to change the url to jdbc:postgresql://localhost:5432/hqdb?protocolVersion=2
Hide
Wes Schlichter added a comment -

Added port 9432 to built in db check. It is possible that this could provide a false negative if the admin is running the builtin db on a different port, however, that scenario has never been observed by support.

To git@git.springsource.org:hq/hq.git
36028ba..819472c master -> master

Show
Wes Schlichter added a comment - Added port 9432 to built in db check. It is possible that this could provide a false negative if the admin is running the builtin db on a different port, however, that scenario has never been observed by support. To git@git.springsource.org:hq/hq.git 36028ba..819472c master -> master

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    2 years, 32 weeks, 6 days ago