Commit dc85baf
authentication.getName() drives the ENTRY_/UPDATE_USERID VARCHAR2(30) audit columns on
every admin write. The converter returned the token with no name, so getName() defaulted
to the Cognito sub (~36-char UUID), which overflows the column (ORA-12899) in production.
Set the principal name to custom:idp_username (sized for it per the FAM identity contract),
falling back to the sub only if the claim is absent. App-wide fix (also code-tables / 24.1).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a5c3d9f commit dc85baf
2 files changed
Lines changed: 33 additions & 1 deletion
File tree
- backend/src
- main/java/ca/bc/gov/nrs/ilcr/security
- test/java/ca/bc/gov/nrs/ilcr/security
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
| |||
backend/src/test/java/ca/bc/gov/nrs/ilcr/security/CognitoGroupsJwtAuthenticationConverterTest.java
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
84 | 104 | | |
0 commit comments