reconquest / atlassian-external-hooks

External Hooks plugin for Atlassian Bitbucket
https://external-hooks.reconquest.io
Other
44 stars 37 forks source link

Unable to Set Global Hooks on a Postges-backed Bitbucket Server #125

Closed briankohler closed 1 year ago

briankohler commented 2 years ago

On a fresh installation on latest BitBucket server, the tables are created with UPPERCASE column names. There is at least one place in the code where raw SQL is run against the DB (not using the ORM) and the column name is not capitalized. If running PostgreSQL, this results in the Global Hooks page spinning indefinitely, and stack traces in the bitbucket app logs indicated "column "hook" does not exist for table.."

briankohler commented 2 years ago

Line of code:

https://github.com/reconquest/atlassian-external-hooks/blob/9aca31fca5235b37a93cd3a68071b15a1dde7815/src/main/java/com/ngs/stash/externalhooks/dao/GlobalHookSettingsDao.java#L31

should be HOOK = ?

kovetskiy commented 1 year ago

Closing since this is fixed.