Bug 749465 - TopicIndex is hardcoded to use "Skynet" as DB name
Summary: TopicIndex is hardcoded to use "Skynet" as DB name
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-27 06:44 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-07 04:19:03 UTC


Attachments (Terms of Use)

Description Joshua Wulf 2011-10-27 06:44:03 UTC
Right now we can point Skynet to a DB server other than the production one by editing the datasource in standalone.xml. This allows another server to be used.

However, it is not possible to change the name of the database. Whatever name you put, the app connects to the "Skynet" database.

Possibly the cause of this is line 36 of http://sourceforge.net/p/topicindex/code/197/tree/trunk/src/main/com/redhat/topicindex/entity/Category.java:

@Table(name = "Category", catalog = "Skynet", uniqueConstraints = @UniqueConstraint(columnNames =
 37 { "CategoryName" }))

Does the inclusion of the Catalog name override the datasource setting?

Comment 1 Matthew Casperson 2011-11-07 04:19:03 UTC
Fixed in 20111107-1418

The catalog overrides the datasource, so with the catalog removed the datasource needs to specify the default database.


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