[Bug][Jira] Saving regex pattern fails #8275
Labels
component/plugins
This issue or PR relates to plugins
severity/p1
This bug affects functionality or significantly affect ux
type/bug
This issue is a bug
Search before asking
What happened
When using PostgreSQL and adding the Cross-domain pattern for Jira GORM fails to store the
Regex
field under PostgreSQL (works for MySQL).The reason is the field type used (
bytea
) and the safe escaping (?) of the string when saving to PostgreSQL, the operation is successful if the user omits theRegex
(tested by overriding the value).If I use the following pattern:
The following error is produced:
What do you expect to happen
The
Regex
is properly saved for both MySQL and PostgreSQL databases.How to reproduce
Spin up Apache Devlake with PostgreSQL, add a Jira integration with Cross-Domain and add a pattern.
Anything else
Any suggestions how to solve this would be more than welcome, currently looking into a solution using
BeforeUpdate
GORM hook, in order to see if the regex pattern can be actually properly transformed for PostgreSQL.Version
31dacd8
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: