[
https://issues.apache.org/jira/browse/KNOX-3495?focusedWorklogId=1050231&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1050231
]
ASF GitHub Bot logged work on KNOX-3495:
----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Oct/26 11:57
Start Date: 26/Oct/26 11:57
Worklog Time Spent: 10m
Work Description: hanicz opened a new pull request, #1470:
URL: https://github.com/apache/knox/pull/1470
… tables
[KNOX-3495](https://issues.apache.org/jira/browse/KNOX-3495) - DB remote
configuration monitor fails on Oracle with ORA-00904 on 21c and 19c
## What changes were proposed in this pull request?
createKnoxProvidersTableOracle.sql and createKnoxDescriptorsTableOracle.sql
declared
`deleted NUMBER(1) DEFAULT false NOT NULL`. Oracle has no FALSE literal
before 23ai, so
table creation failed with `ORA-00904: "FALSE": invalid identifier` and the
gateway did
not start when the DB-backed remote config monitor was enabled.
Changed the default to `DEFAULT 0`, matching the other Oracle scripts.
## How was this patch tested?
ran both scripts against Oracle XE 21c in Docker. The scripts before this
change
fail with ORA-00904, and the fixed scripts create both tables.
Issue Time Tracking
-------------------
Worklog Id: (was: 1050231)
Remaining Estimate: 0h
Time Spent: 10m
> DB remote configuration monitor fails on Oracle with ORA-00904 on 21c and 19c
> -----------------------------------------------------------------------------
>
> Key: KNOX-3495
> URL: https://issues.apache.org/jira/browse/KNOX-3495
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 3.0.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> createKnoxProvidersTableOracle.sql and createKnoxDescriptorsTableOracle.sql
> declare deleted NUMBER(1) DEFAULT false NOT NULL. Oracle has no FALSE SQL
> literal before 23ai, so table creation fails with ORA-00904: "FALSE": invalid
> identifier and the gateway fails to start when the DB-backed remote config
> monitor is enabled.
> The types were ported from the standard scripts (varchar→varchar2, TEXT→CLOB,
> boolean→NUMBER(1)) but the default was not. The later Oracle scripts
> (createKnoxIDFTrustedOidcIssuersTableOracle.sql,
> createKnoxIDFDelegationPolicyTablesOracle.sql) already use DEFAULT 0.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)