Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
455 commits
Select commit Hold shift + click to select a range
1e81781
fix: replace TypeTag synthesis in RestConnector_vMar2019 with runtime…
hongwei1 Aug 19, 2026
ce327e2
fix: replace remaining TypeTag synthesis in the connector/codegen uti…
hongwei1 Aug 19, 2026
e81adf2
fix: replace TypeTag synthesis in the connector test sources
hongwei1 Aug 19, 2026
4abb00d
chore: drop stale net.liftweb.mapper imports left over from the Mappe…
hongwei1 Aug 19, 2026
15e9e56
build: flip obp-api's compiler to Scala 3
hongwei1 Aug 19, 2026
8377ad7
test: fix test sources for the Scala 3 compiler flip
hongwei1 Aug 19, 2026
7a25ada
fix: pin scala3-library_3 to the compiler version
hongwei1 Aug 19, 2026
f627a54
fix: a same-thread reentrant lazy-val call deadlocks under Scala 3
hongwei1 Aug 19, 2026
aa31b1c
fix: recover Scala-3-compiled val/lazy-val members that isVal/isVar/i…
hongwei1 Aug 19, 2026
e781ae5
fix: OBPEnumerationBase self-reflects on its own not-yet-initialized …
hongwei1 Aug 19, 2026
4f36932
fix: json4s Scala 3 extraction - groupId move, classpath split, Scala…
hongwei1 Aug 19, 2026
14c5a8f
fix: getCallByNameValues only handled the Mapper call-by-name shape
hongwei1 Aug 19, 2026
d335e7b
fix: toOther's non-method fallback pointed at a hardcoded "attributes…
hongwei1 Aug 19, 2026
e091dbe
fix: dynamic entity list handlers cast List[DynamicEntityT] instead o…
hongwei1 Aug 19, 2026
e14aaae
fix: full-suite fallout - SwaggerTypes typeOf, getFieldValues over-ma…
hongwei1 Aug 19, 2026
23b1634
fix: ResourceDocsTechnologyTest - non-OBP reflection target, and a ge…
hongwei1 Aug 19, 2026
d74ed0a
fix: route around a scala-reflect symbol-table crash in the connector…
hongwei1 Aug 19, 2026
d736b54
fix: move Swagger field-type test fixtures out of the suite class body
hongwei1 Aug 19, 2026
a08eb44
feat: replace ToolBox with a dotc-driven DynamicScalaCompiler for Sca…
hongwei1 Aug 19, 2026
f417447
fix: exclude Connector's public vals from the dynamic-method symbol t…
hongwei1 Aug 19, 2026
0843fe8
fix: convert Commons list responses instead of casting them
hongwei1 Aug 19, 2026
f614a30
fix: route obp-commons case classes around json4s's Scala 3 readField…
hongwei1 Aug 19, 2026
2e7187e
fix: exclude synthetic setters and adapter conversions from connector…
hongwei1 Aug 19, 2026
c2d384b
chore: regenerate frozen type structure snapshot for the Scala 3 flip
hongwei1 Aug 19, 2026
b1daa81
fix: route obp-commons case class extraction around json4s's Scala 3 …
hongwei1 Aug 19, 2026
3361506
fix: scope ObpCommonsProductDeserializer's missing-field leniency to …
hongwei1 Aug 19, 2026
b502b48
chore: regenerate frozen type structure text rendering
hongwei1 Aug 19, 2026
13418d5
fix: select the primary constructor by its own flag, not by position
hongwei1 Aug 20, 2026
3bd8445
fix: select the primary constructor by matching declared fields, not …
hongwei1 Aug 20, 2026
9fa085b
chore: remove the primary-constructor diagnostic now that CI confirms…
hongwei1 Aug 20, 2026
887ab16
fix: resolve CLI-supplied paths before using them in the migration sc…
hongwei1 Aug 20, 2026
afed325
fix: suppress SonarCloud's path-traversal rule on the two dev-tooling…
hongwei1 Aug 20, 2026
de33106
fix: v_oidc_users view cannot be upgraded on a database from the lega…
hongwei1 Aug 20, 2026
e37141e
fix: v7.0.0 swagger docs 400 on a class scala-reflect cannot own-chain
hongwei1 Aug 20, 2026
2647fcd
fix: a NULL guard for a lazy-val deadlock also disabled log masking
hongwei1 Aug 20, 2026
e03870c
fix: constructor and field selection still nondeterministic for one s…
hongwei1 Aug 20, 2026
93887cf
fix: narrow the erasure-tolerant type check to AnyVal targets
hongwei1 Aug 20, 2026
9f58b03
refactor: drop two dead duplicate type checks in JsonSchemaGenerator
hongwei1 Aug 20, 2026
948fb13
fix: enumerate dynamic connector methods by shape, not just by name
hongwei1 Aug 20, 2026
d198732
perf: cache constructor reflection in the obp-commons JSON codec
hongwei1 Aug 20, 2026
3b4f2c4
refactor: fold Converter into ConverterWithType
hongwei1 Aug 20, 2026
e3d4e2c
perf: hoist a repeated Connector type lookup out of a filter predicate
hongwei1 Aug 20, 2026
1e99492
fix: bootstrapPatterns' credential coverage stopped at 4 categories
hongwei1 Aug 20, 2026
71a9a02
fix: getPrimaryConstructor's tie-break still depended on alternatives…
hongwei1 Aug 20, 2026
bb0cf94
fix: check AnyVal structurally instead of by a fixed name list
hongwei1 Aug 20, 2026
9ff007b
fix: the new bootstrap key pattern over-matched non-credential logging
hongwei1 Aug 20, 2026
307d15e
doc: record getPrimaryConstructor's parameter-name-only comparison limit
hongwei1 Aug 20, 2026
55b9a14
fix: bootstrapPatterns' key prefix list missed a real one - consumer_key
hongwei1 Aug 20, 2026
2ff6d96
doc: stop duplicating the bootstrapPatterns key-prefix list in two co…
hongwei1 Aug 20, 2026
3dd2aa1
test: cover GET /obp/v3.0.0/my/entitlements
hongwei1 Aug 20, 2026
cfb55aa
fix: sandbox import rejected two banks legitimately sharing an IBAN
hongwei1 Aug 21, 2026
c198b27
fix: a legacy NULL column no longer fails the whole listing query
hongwei1 Aug 24, 2026
a730bce
fix: three test suites were assigned to no shard and never ran
hongwei1 Aug 24, 2026
222622c
fix: the views the request paths read are created on a default deploy…
hongwei1 Aug 24, 2026
364de65
fix: launch the container with -cp, so runtime compilation has a clas…
hongwei1 Aug 24, 2026
767e338
fix: drop the view before creating it, so an upgrade can boot
hongwei1 Aug 24, 2026
b5d8b8f
fix: Option of a value type is published as that value type again
hongwei1 Aug 24, 2026
2e433f2
fix: check the whole published swagger surface, not just its top layer
hongwei1 Aug 24, 2026
f83546d
fix: convert a connector result to its Commons type, never cast it
hongwei1 Aug 24, 2026
946ef94
fix: CI verifies the Postgres schema instead of silently skipping it
hongwei1 Aug 24, 2026
8ba3667
fix: one update path for every state a database can boot in
hongwei1 Aug 24, 2026
ca3aaaf
fix: the frozen type contract records what a field is, not what erasu…
hongwei1 Aug 24, 2026
b629103
fix: de-duplicate the two natural-key tables in the changelog, portably
hongwei1 Aug 24, 2026
92f0465
fix: a card's absent networks/cvv/brand read back as absent, not as e…
hongwei1 Aug 24, 2026
b20d2a9
fix: the frozen-type refiner visits every field, once per object
hongwei1 Aug 24, 2026
bb46aa5
fix: the Commons-cast lint ignores a // inside a string literal
hongwei1 Aug 24, 2026
a6bb063
docs: launch with -cp everywhere, not java -jar
hongwei1 Aug 24, 2026
404683b
docs: attach bringUpToDate's scaladoc to bringUpToDate
hongwei1 Aug 24, 2026
b846317
fix: bind the metrics filter values instead of splicing them into SQL
hongwei1 Aug 24, 2026
42823bc
refactor: one filter extractor for the three metrics reads
hongwei1 Aug 24, 2026
e4ea86b
fix: a locked account can still log in through OIDC
hongwei1 Aug 25, 2026
107919d
fix: refuse to compile user-supplied Scala when the sandbox enforces …
hongwei1 Aug 25, 2026
125950a
fix: the dynamic-code dependency scan was gated on a diagnostic prop,…
hongwei1 Aug 25, 2026
cfba6c4
fix: consents.sca.enabled=false accepted any SCA answer in production…
hongwei1 Aug 25, 2026
84c4ef9
fix: authuser email lost MappedEmail's normalisation, and an unlinked…
hongwei1 Aug 25, 2026
b71a853
fix: the OIDC view honoured only half of the lockout
hongwei1 Aug 25, 2026
e9ca511
docs: retract 125950aa2's cause for the json4s failures; the scoping …
hongwei1 Aug 25, 2026
0e0fcbb
fix: revert cfb55aa6a - an IBAN is globally unique, and the payment p…
hongwei1 Aug 25, 2026
c341523
docs: upgrade note for dynamic Scala code on JDK 24 and later
hongwei1 Aug 25, 2026
15fcff4
test: import the shipped sandbox fixture, which nothing was exercising
hongwei1 Aug 25, 2026
4bd065a
fix: getValues saw nothing on a Scala 3 object, so every allFields wa…
hongwei1 Aug 25, 2026
6606b61
test: guard that every API version actually registers its resource docs
hongwei1 Aug 25, 2026
1e83d6b
merge: bring in origin/develop, porting its Mapper work onto the Doob…
hongwei1 Aug 28, 2026
f504f0c
fix: a malformed escape in a method body escaped create instead of fa…
hongwei1 Aug 29, 2026
ddef1ca
fix: the new digest table was never cleared between test classes
hongwei1 Aug 29, 2026
4eb20af
merge: bring in origin/develop, porting its Mapper work onto the Doob…
hongwei1 Sep 2, 2026
63ada50
fix: restore the column widening the develop merge dropped
hongwei1 Sep 2, 2026
6e97943
fix: the cache namespace could not tell a Scala 3 build from a 2.13 one
hongwei1 Sep 2, 2026
500cb03
test: an assertion that could not fail is not a check
hongwei1 Sep 2, 2026
8bf919d
refactor: delete two DoobieQueries methods with zero callers
hongwei1 Sep 2, 2026
9021f4e
refactor: take obp-api's dependency on net.liftweb.mapper to zero
hongwei1 Sep 2, 2026
85e09d4
refactor: replace the last four live net.liftweb.mapper symbols with …
hongwei1 Sep 2, 2026
a2d89ac
refactor: retire Schemifier from boot and delete ToSchemify.models
hongwei1 Sep 3, 2026
9107844
fix: ToSchemify never initialized, so gRPC startup and the shutdown h…
hongwei1 Sep 5, 2026
7d3683f
refactor: drop maybeWrite's logFunc parameter, which never varied
hongwei1 Sep 5, 2026
89ce290
fix: connector trace rows persisted with an empty correlation id
hongwei1 Sep 5, 2026
e3267f7
fix: idempotency scope missed the caller and the concrete path
hongwei1 Sep 5, 2026
872db1a
fix: token binding accepted a certificate with no proof of possession
hongwei1 Sep 5, 2026
5088b0d
fix: global operation-id union kept the first duplicate, not the last
hongwei1 Sep 5, 2026
e1df454
fix: two consent-attribution bugs in the metrics queries
hongwei1 Sep 5, 2026
6c90bb8
fix: mobile phone number validation gaps in v7.0.0
hongwei1 Sep 5, 2026
08659c7
fix: top-users/top-consumers hit the 24h stable metrics cache by default
hongwei1 Sep 5, 2026
23a91c7
fix: UK Open Banking v2.0 getAccount crashed on an unknown account id
hongwei1 Sep 5, 2026
6ed18ed
feat: extend the endpoint auth/crash sweep to Berlin Group and UK Ope…
hongwei1 Sep 5, 2026
ba37e67
merge: bring in origin/develop, porting its Mapper work onto the Doob…
hongwei1 Sep 10, 2026
3482aff
fix: a wildcard ResourceDoc shadowed the per-type docs, and with them…
hongwei1 Sep 11, 2026
88e4857
fix: transaction requests attributed the payment to the consent user,…
hongwei1 Sep 11, 2026
e763115
fix: deleting one bank's ATM deleted every other bank's ATM with the …
hongwei1 Sep 11, 2026
de5ae6b
fix: three metrics defects - an unaliased subquery, an ambiguous colu…
hongwei1 Sep 11, 2026
3b0b087
fix: api_disabled_versions could not retire Berlin Group
hongwei1 Sep 11, 2026
575fbac
fix: the two Elasticsearch endpoints matched no ResourceDoc, so middl…
hongwei1 Sep 11, 2026
e36ea26
test: reset the five tables the develop merge added
hongwei1 Sep 11, 2026
79ec723
fix: the nullable-column guard was blind to most reads, and 597 of th…
hongwei1 Sep 11, 2026
d423d7e
fix: a null attribute value 500ed instead of storing SQL NULL
hongwei1 Sep 11, 2026
3516824
test: drop the FreeForm auth exemption the role fix made untrue
hongwei1 Sep 11, 2026
dc2b1ce
chore: add the licence headers develop added, ahead of merging it
hongwei1 Nov 6, 2026
8e7ff84
merge: bring origin/develop (db74dd46e) into build/scala-3-migration
hongwei1 Nov 6, 2026
44c4140
merge: bring origin/develop (474d4bcc5) into build/scala-3-migration
hongwei1 Nov 14, 2026
e198bd4
ci: mark the throwaway CI database passwords and two fixtures as non-…
hongwei1 Nov 14, 2026
94507be
test: open the two UK v2.0.0 scenario bodies on the line of their Sce…
hongwei1 Nov 14, 2026
479986e
fix: seeding approved hashes at boot no longer switches deactivated r…
hongwei1 Nov 14, 2026
7cac218
fix: message outbox enqueue returns the id of its own row, rows with …
hongwei1 Nov 14, 2026
f0ab6aa
fix: deactivating or renaming a Dynamic Entity webhook writes only th…
hongwei1 Nov 14, 2026
30ff746
fix: dry-run compile errors map to the right line and column of the a…
hongwei1 Nov 14, 2026
fdd4f28
fix: the dynamic code dependency scan covers every class the snippet …
hongwei1 Nov 14, 2026
1297c1f
fix: count the records of an entity in SQL instead of loading them wh…
hongwei1 Nov 14, 2026
4e78d04
fix: the dynamic code scan follows constructors, initialisers and the…
hongwei1 Nov 14, 2026
1525682
fix: dry-run compile errors are traced to the author's line through a…
hongwei1 Nov 14, 2026
9dde1f8
docs: list code reachable only from OBP versions below v5.1.0
hongwei1 Nov 26, 2026
48bc683
refactor: comment out v5.0.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
d72c795
refactor: comment out v4.0.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
3e3d05d
refactor: comment out v3.1.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
467079b
refactor: comment out v3.0.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
d60cfb8
chore: remove the reachability probe test committed by mistake
hongwei1 Nov 27, 2026
3c0e5df
refactor: comment out v2.2.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
5074717
refactor: comment out v2.1.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
dc8f9df
refactor: comment out v2.0.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
ca28f7c
refactor: comment out v1.4.0 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
e6aa353
refactor: comment out the v1.3.0 endpoint that no kept version reaches
hongwei1 Nov 27, 2026
1ee4dc4
refactor: comment out v1.2.1 endpoints that no kept version reaches
hongwei1 Nov 27, 2026
cf9053c
refactor: comment out helpers that only the commented-out endpoints used
hongwei1 Nov 27, 2026
95f0d40
docs: describe the commented-out pre-v5.1.0 code as done
hongwei1 Nov 27, 2026
e6b5165
test: adapt the v1.2.1 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
094d70e
test: adapt the v1.4.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
1b59251
test: adapt the v2.0.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
c69feda
test: adapt the v2.1.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
931ad25
test: adapt the v2.2.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
63505a1
test: adapt the v3.0.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
b74bd82
test: adapt the v3.1.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
191408c
test: adapt the v4.0.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
aae9458
test: adapt the v5.0.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
1aa1f6c
test: adapt the v5.1.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
10d8ece
test: adapt the v6.0.0 tests to the commented-out endpoints
hongwei1 Nov 27, 2026
2ac9092
test: stop the cross-version tests from calling commented-out endpoints
hongwei1 Nov 27, 2026
b128d99
test: regenerate the frozen API snapshot without the commented-out en…
hongwei1 Nov 27, 2026
6bd2f97
chore: record the commented-out endpoints in the resource-doc parity …
hongwei1 Nov 27, 2026
1762da4
test: let the v3.1.0 customer suite load again
hongwei1 Nov 27, 2026
cddb72a
test: comment out the v1.2.1 test helpers that only commented-out end…
hongwei1 Nov 27, 2026
0149e68
test: comment out the v2.1.0 test helpers that only commented-out end…
hongwei1 Nov 27, 2026
167f300
test: comment out the v2.2.0 test helpers that only commented-out end…
hongwei1 Nov 27, 2026
cd3148c
test: comment out the v3.0.0 test helpers that only commented-out end…
hongwei1 Nov 27, 2026
be3eedb
test: comment out the v3.1.0 test helpers that only commented-out end…
hongwei1 Nov 27, 2026
cf02d3c
test: comment out the v4.0.0 test helpers that only commented-out end…
hongwei1 Nov 27, 2026
1f589c7
test: stop the ignored and prop-gated tests from calling commented-ou…
hongwei1 Nov 27, 2026
b527eaa
test: comment out five private test helpers that only commented-out s…
hongwei1 Nov 27, 2026
c802bac
chore: tag every commented-out block as unreachable before OBP v5.1.0
hongwei1 Nov 27, 2026
cb1456e
test: assert the getBank result in the connector method test
hongwei1 Nov 27, 2026
7bd73b1
test: require 200 from the v1.2.1 view helpers
hongwei1 Nov 27, 2026
f39cfc2
test: keep the old v3.1.0 card, product and rate-limit checks as comm…
hongwei1 Nov 27, 2026
a28d2b8
test: check every field of the ATM created by createAtmAtBank
hongwei1 Nov 27, 2026
abd9122
test: cover the v3.1.0 card get, list, update and delete endpoints again
hongwei1 Nov 27, 2026
7582fd7
test: cover the v3.1.0 product tree endpoint again
hongwei1 Nov 27, 2026
33c4789
test: cover the six v4.0.0 ATM field updates again
hongwei1 Nov 27, 2026
640ecf1
test: cover v2.0.0 GET /accounts again
hongwei1 Nov 27, 2026
3eac980
test: name the product-tree path segment once in ProductTest
hongwei1 Nov 27, 2026
ac76606
fix: keep the public helpers that dynamic Scala code may call
hongwei1 Nov 27, 2026
042f98b
docs: note the default-enabled old prefixes and the kept public helpers
hongwei1 Nov 27, 2026
fe98306
test: cover the older handlers that now serve commented-out paths und…
hongwei1 Nov 27, 2026
80014b0
test: name the repeated values once in OlderHandlersServedByV510Test
hongwei1 Nov 27, 2026
d9595c6
test: name repeated literals once
hongwei1 Nov 27, 2026
7f2e7c4
test: resolve the TODO comments in lines this change touches
hongwei1 Nov 27, 2026
e96ae7b
refactor: name the could-not-save-the-privilege error once in Http4s121
hongwei1 Nov 27, 2026
e07738f
chore: skip the commented-out-code rule in the old version folders
hongwei1 Nov 27, 2026
220a794
fix: read and update a product attribute only through its own bank an…
hongwei1 Nov 27, 2026
4e56f85
test: port the checks of the commented-out endpoints to their v5.1.0 …
hongwei1 Nov 27, 2026
5ff7966
test: give the shared v5.1.0 prefix a name of its own
hongwei1 Nov 27, 2026
b4c4ff5
refactor: name the no-owner-view-access error once in Http4s121
hongwei1 Nov 27, 2026
d6900cd
chore: move the S125 exclusion to .sonarcloud.properties
hongwei1 Nov 27, 2026
c5f6a1e
Merge origin/develop into feature/comment-out-pre-v510-code
hongwei1 Nov 27, 2026
4d3c431
docs: record how the newer handlers' tests and checks were compared w…
hongwei1 Nov 27, 2026
5e22ba6
test: read the account number only through the versions that still se…
hongwei1 Nov 27, 2026
22b38b0
chore: drop .sonarcloud.properties, which SonarCloud automatic analys…
hongwei1 Nov 27, 2026
da9b5b8
chore: tag the commented-out blocks the first tagging pass missed
hongwei1 Nov 27, 2026
5274011
test: give the public accounts scenario a public view to find
hongwei1 Nov 27, 2026
4165758
test: read the user-customer link through the API after an accepted u…
hongwei1 Nov 27, 2026
7d4c2c2
fix: a new custom view only gets actions the caller has (v3.0.0 Creat…
hongwei1 Nov 27, 2026
faffd7f
test: check that Create View under v5.1.0 only grants the caller's ac…
hongwei1 Nov 27, 2026
aa50d23
docs: record the v3.0.0 Create View fix
hongwei1 Nov 27, 2026
45abad9
Merge origin/develop into feature/comment-out-pre-v510-code
hongwei1 Nov 27, 2026
1bb37e4
docs: say in Create Custom View that a new view only gets the caller'…
hongwei1 Nov 27, 2026
48dc444
docs: show every action in the Create Custom View (Management) example
hongwei1 Nov 27, 2026
3b86e01
test: refuse a maker answering their own transaction request challenge
hongwei1 Nov 28, 2026
6e2ce16
test: restore the v3.0.0 create view and update missing view scenarios
hongwei1 Nov 28, 2026
95a6752
test: only the creator of a Consumer can change its redirect URL
hongwei1 Nov 28, 2026
42988c4
test: refuse an account id in the wrong format on Create Account
hongwei1 Nov 28, 2026
67edb46
test: product attribute endpoints need a login and their role
hongwei1 Nov 28, 2026
6c7a3fb
fix: check the bank id format against the bank id in v5.0.0 Create Ac…
hongwei1 Nov 28, 2026
e7ec667
test: restore the other account of a missing transaction scenario
hongwei1 Nov 28, 2026
5367b30
docs: list the checks whose tests were ported in the third pass
hongwei1 Nov 28, 2026
70bad18
merge: bring origin/develop into build/scala-3-migration
hongwei1 Nov 28, 2026
9cd324b
merge: bring #2979 (comment out code only OBP versions below v5.1.0 r…
hongwei1 Nov 28, 2026
7eb60b6
test: read the database name from a SQL Server url in the disposable …
hongwei1 Nov 28, 2026
0fc89bd
fix: drop the retired v_account_access_with_views instead of creating…
hongwei1 Nov 28, 2026
02f2498
fix: give the 29 length-less VARCHAR columns a real type on SQL Serve…
hongwei1 Nov 28, 2026
aa290bb
fix: build the OIDC views and the retired view drop on SQL Server, My…
hongwei1 Nov 28, 2026
37403c2
ci: run the Postgres shards on the job's postgres service
hongwei1 Nov 28, 2026
5bdca9b
fix: build the indexes MySQL cannot take whole with prefix lengths
hongwei1 Nov 28, 2026
47412a9
fix: skip the legacy migration scripts on MySQL, MariaDB and Oracle
hongwei1 Nov 28, 2026
d4304f1
fix: store timestamps as DATETIME(6) on MySQL
hongwei1 Nov 28, 2026
2e75e1b
fix: write row limits in the form each database takes
hongwei1 Nov 28, 2026
1c10f06
fix: bind boolean values in SQL instead of writing true and false
hongwei1 Nov 28, 2026
2f514d7
fix: use CURRENT_TIMESTAMP instead of NOW() in SQL
hongwei1 Nov 28, 2026
ce97843
fix: build the fast firehose aggregates for MySQL and Oracle
hongwei1 Nov 28, 2026
664bc9f
test: judge an Oracle test database by the schema the suite logs into
hongwei1 Nov 28, 2026
24b9ed5
ci: add MySQL, MariaDB and Oracle to the databases a manual run can test
hongwei1 Nov 28, 2026
06311fe
fix: let the column-widening changesets run on Oracle
hongwei1 Nov 28, 2026
e9ef8c2
ci: accept the column.catalog property in the width preconditions check
hongwei1 Nov 28, 2026
e36404d
fix: spell the typed NULL in the metric listing for MySQL and Oracle
hongwei1 Nov 28, 2026
1fd65fd
fix: put a space before every clause the row-limit helpers append
hongwei1 Nov 28, 2026
ccf9d68
fix: bind the remaining boolean literals in inserts and approval updates
hongwei1 Nov 28, 2026
0ede85a
test: read the migrated indexes through JDBC metadata on MySQL, SQL S…
hongwei1 Nov 28, 2026
b2a14de
test: declare the cascade blockers' foreign keys at table level
hongwei1 Nov 28, 2026
932a135
test: create the pre-tenant tables in the dialect of the database und…
hongwei1 Nov 28, 2026
eb4cbc9
test: write the suite's own SQL so that it runs on every database
hongwei1 Nov 28, 2026
aa19b85
fix: create the changelog's VARCHAR columns as NVARCHAR on SQL Server
hongwei1 Nov 28, 2026
50311d7
fix: give MariaDB the same changelog properties and indexes as MySQL
hongwei1 Nov 28, 2026
9e6c967
fix: compare currency codes byte for byte on MySQL and MariaDB
hongwei1 Nov 28, 2026
f49e60f
test: bind the booleans and timestamps the suite writes in its own SQL
hongwei1 Nov 28, 2026
8e0dddd
fix: leave the changelog's unique indexes alone when the columns are …
hongwei1 Nov 28, 2026
4e9e494
fix: widen SQL Server columns to NVARCHAR in the legacy migrations
hongwei1 Nov 28, 2026
b9ffaba
feat: keep empty strings apart from NULL on Oracle
hongwei1 Nov 28, 2026
4462706
fix: alias the metrics archive run sub-select without AS
hongwei1 Nov 28, 2026
bf86c5f
fix: keep transactionrequestattribute.value comparable on Oracle
hongwei1 Nov 28, 2026
1a0d3ec
fix: rename amqp_bank_broker's quoted lower-case password column on O…
hongwei1 Nov 28, 2026
ae8594d
fix: skip the consent reference id migration where the column is alre…
hongwei1 Nov 28, 2026
e78c5a2
fix: copy quoted identifiers and comments through the Oracle SQL rewr…
hongwei1 Nov 28, 2026
4bccd10
fix: store doubles as BINARY_DOUBLE on Oracle
hongwei1 Nov 28, 2026
71a2479
test: judge the resolved test database with its user, as the guard does
hongwei1 Nov 28, 2026
f1a7fbf
test: draw the v5.0.0 account routings from printable characters
hongwei1 Nov 28, 2026
a1e0c54
fix: bind doubles in binary on Oracle
hongwei1 Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .github/Dockerfile_PreBuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,20 @@ COPY /obp-api/target/lib /app/lib
COPY /obp-api/target/obp-api.jar /app/obp-api.jar
WORKDIR /app
USER obp
# -cp, not -jar. The dependencies live in /app/lib and reach an ordinary classloader either way,
# via the jar manifest's Class-Path - but a manifest Class-Path never appears in the
# `java.class.path` system property, and under `-jar` that property is the single jar and nothing
# else. Two things read it directly to build a compiler classpath at runtime: our own
# DotcScalaCompiler (dynamic endpoints, dynamic connector methods, ABAC rules) and, inside json4s,
# the ScalaSigReader that resolves Scala 3 case-class field types. Both then fail with
# "Could not find package scala from compiler core libraries" / an unhandled staging-compiler
# error, on a server that otherwise boots and looks healthy. Reproduced on this image: with -jar,
# POST /obp/v2.1.0/sandbox/data-import returned 500 from the staging compiler; with the -cp form
# below and nothing else changed, 201.
ENTRYPOINT ["java", \
"--add-opens", "java.base/java.lang=ALL-UNNAMED", \
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED", \
"--add-opens", "java.base/java.io=ALL-UNNAMED", \
"--add-opens", "java.base/java.util=ALL-UNNAMED", \
"--add-opens", "java.base/java.util.concurrent=ALL-UNNAMED", \
"-jar", "/app/obp-api.jar"]
"-cp", "/app/obp-api.jar:/app/lib/*", "bootstrap.http4s.Http4sServer"]
53 changes: 46 additions & 7 deletions .github/actions/setup-test-database/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
description: >
Selects the database the shards run against (H2 unless a manual run or a pull request label asks for
SQL Server or PostgreSQL), starts its container when one is needed and exports the settings the later
steps use: TEST_DB, TEST_DB_DRIVER, TEST_DB_URL and TEST_TIMEOUT_SECONDS.
steps use: TEST_DB, TEST_DB_DRIVER, TEST_DB_URL, TEST_DB_USER and TEST_DB_PASSWORD (Oracle only) and
TEST_TIMEOUT_SECONDS.

inputs:
database:
description: Database chosen on a manual run (h2, sqlserver, sqlserver2017 or postgres); empty on other triggers.
description: Database chosen on a manual run (h2, sqlserver, sqlserver2017, postgres, mysql, mariadb or oracle); empty on other triggers.
required: false
default: ''
pr-labels:
Expand All @@ -32,6 +33,9 @@
SA_PASSWORD='ObpTests2026!Ci'
MSSQL_IMAGE='mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04'
POSTGRES_IMAGE='postgres:16-alpine'
MYSQL_IMAGE='mysql:8.4'
MARIADB_IMAGE='mariadb:11.4'
ORACLE_IMAGE='gvenzl/oracle-free:23-slim'

DB_CHOICE="${INPUT_DB:-h2}"
if [ "$DB_CHOICE" = "h2" ]; then
Expand Down Expand Up @@ -85,13 +89,48 @@
# from 30 to over 50 minutes on SQL Server depending on the runner, so it gets 75 minutes.
echo "TEST_TIMEOUT_SECONDS=4500" >> "$GITHUB_ENV"
elif [ "$DB_CHOICE" = "postgres" ]; then
docker run -d --name postgres -p 5432:5432 \
-e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=obp_test \
"$POSTGRES_IMAGE"
wait_until_ready postgres 2 docker exec postgres pg_isready -U postgres
# The test job already runs a postgres service on 5432 for PostgresMigrationTest, so a
# second container cannot bind the port. The shards use that server, in a database of
# their own whose name DisposableDatabaseGuard accepts.
PSQL=(docker run --rm --network host -e PGPASSWORD=postgres "$POSTGRES_IMAGE" psql -h localhost -U postgres -v ON_ERROR_STOP=1)
wait_until_ready postgres 2 "${PSQL[@]}" -c 'SELECT 1'
"${PSQL[@]}" -c "CREATE DATABASE obp_test_only"
echo "TEST_DB_DRIVER=org.postgresql.Driver" >> "$GITHUB_ENV"
echo "TEST_DB_URL=jdbc:postgresql://localhost:5432/obp_test?user=postgres&password=password" >> "$GITHUB_ENV"
echo "TEST_DB_URL=jdbc:postgresql://localhost:5432/obp_test_only?user=postgres&password=postgres" >> "$GITHUB_ENV"
echo "TEST_TIMEOUT_SECONDS=4500" >> "$GITHUB_ENV"
elif [ "$DB_CHOICE" = "mysql" ]; then
# lower_case_table_names=1: the queries name tables the way Postgres folds them, without regard to
# case, and MySQL on Linux compares table names case-sensitively unless it is told otherwise. It can
# only be set when the server initialises its data directory, which this fresh container does.
docker run -d --name mysql -p 3306:3306 \
-e MYSQL_ROOT_PASSWORD="$SA_PASSWORD" -e MYSQL_DATABASE=obp_suite_mysql \
"$MYSQL_IMAGE" --max-connections=400 --lower-case-table-names=1
wait_until_ready mysql 5 docker exec mysql mysql -uroot "-p$SA_PASSWORD" -e 'SELECT 1'
echo "TEST_DB_DRIVER=com.mysql.cj.jdbc.Driver" >> "$GITHUB_ENV"
echo "TEST_DB_URL=jdbc:mysql://localhost:3306/obp_suite_mysql?user=root&password=$SA_PASSWORD&allowPublicKeyRetrieval=true&useSSL=false" >> "$GITHUB_ENV"
echo "TEST_TIMEOUT_SECONDS=4500" >> "$GITHUB_ENV"
elif [ "$DB_CHOICE" = "mariadb" ]; then
# Reached through the MySQL driver, so Liquibase and the application treat it as MySQL; the same
# lower_case_table_names setting applies.
docker run -d --name mariadb -p 3306:3306 \
-e MARIADB_ROOT_PASSWORD="$SA_PASSWORD" -e MARIADB_DATABASE=obp_suite_mysql \
"$MARIADB_IMAGE" --max-connections=400 --lower-case-table-names=1
wait_until_ready mariadb 5 docker exec mariadb mariadb -uroot "-p$SA_PASSWORD" -e 'SELECT 1'
echo "TEST_DB_DRIVER=com.mysql.cj.jdbc.Driver" >> "$GITHUB_ENV"
echo "TEST_DB_URL=jdbc:mysql://localhost:3306/obp_suite_mysql?user=root&password=$SA_PASSWORD&allowPublicKeyRetrieval=true&useSSL=false" >> "$GITHUB_ENV"
echo "TEST_TIMEOUT_SECONDS=4500" >> "$GITHUB_ENV"
elif [ "$DB_CHOICE" = "oracle" ]; then
# On Oracle the tables live in the schema of the user the suite logs in as, so that user's name is
# what DisposableDatabaseGuard checks.
docker run -d --name oracle -p 1521:1521 \
-e ORACLE_PASSWORD="$SA_PASSWORD" -e APP_USER=obp_suite_oracle -e APP_USER_PASSWORD="$SA_PASSWORD" \
"$ORACLE_IMAGE"
wait_until_ready oracle 10 docker exec oracle healthcheck.sh
echo "TEST_DB_DRIVER=oracle.jdbc.OracleDriver" >> "$GITHUB_ENV"
echo "TEST_DB_URL=jdbc:oracle:thin:@//localhost:1521/FREEPDB1" >> "$GITHUB_ENV"
echo "TEST_DB_USER=obp_suite_oracle" >> "$GITHUB_ENV"
echo "TEST_DB_PASSWORD=$SA_PASSWORD" >> "$GITHUB_ENV"
echo "TEST_TIMEOUT_SECONDS=4500" >> "$GITHUB_ENV"

Check warning on line 133 in .github/actions/setup-test-database/action.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using the literal 'TEST_TIMEOUT_SECONDS=4500' 5 times.

See more on https://sonarcloud.io/project/issues?id=OpenBankProject_OBP-API&issues=AaIhSs7gaqLzH6o7nL6U&open=AaIhSs7gaqLzH6o7nL6U&pullRequest=2899
else
echo "Running with the default H2 in-memory database; no container is started."
echo "TEST_TIMEOUT_SECONDS=1500" >> "$GITHUB_ENV"
Expand Down
89 changes: 89 additions & 0 deletions .github/scripts/check_changelog_data_migrations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#!/usr/bin/env python3
"""The de-duplications the changelog carries by hand must stay in it.

`liquibase generateChangeLog` takes a snapshot of a schema, and a statement that ran once and left
no trace in the catalogue is invisible to it. Two of the Flyway scripts deleted duplicate rows
before creating a unique index, and reverse-generating the changelog kept the indexes and dropped
the DELETEs that made them creatable. They were written back into
db/changelog/db.changelog-dedup.yaml by hand.

Nothing else would notice them going missing again. The equivalence checks that guarded the
generation compared schemas, and both built empty databases, where a de-duplication is a no-op
either way; the loss only shows up on a real database that holds duplicates, at the moment the
unique index fails to build. So the statements are frozen here, verbatim as they stood in the
Flyway scripts that are now deleted - V057 (the three internal id-mapping tables) and V116 (five
tables whose unique index the earliest migrations left out).

Freezing rather than reading them from somewhere is the point: there is no longer another copy to
compare against, and a check that derives its expectation from the file it is checking would pass
whatever that file said.

DedupChangesetsTest is the other half - it runs the changesets against a table that actually holds
duplicates. This one only asserts they are present.
"""
import re
import sys
from pathlib import Path

ROOT = Path(__file__).resolve().parents[2]
CHANGELOG_DIR = ROOT / "obp-api/src/main/resources/db/changelog"

EXPECTED = [
# Boot's own de-duplication, moved into the changelog: it ran after the index it existed to
# precede, and named a table that does not exist. Unlike the eight below these carry no dbms
# restriction, so they use the ROW_NUMBER() derived-table form MySQL's ERROR 1093 permits -
# see the changelog file's header.
"delete from mappedentitlement where id in ( select id from ( select id, row_number() over ( partition by mbankid, muserid, mrolename order by id asc) as rn from mappedentitlement where mbankid is not null and muserid is not null and mrolename is not null ) tmp where rn > 1 )",
"delete from mapperaccountholders where id in ( select id from ( select id, row_number() over ( partition by user_c, accountbankpermalink, accountpermalink order by id asc) as rn from mapperaccountholders where user_c is not null and accountbankpermalink is not null and accountpermalink is not null ) tmp where rn > 1 )",
# V057: accountidmapping
"delete from accountidmapping where maccountplaintextreference is not null and id not in ( select min(id) from accountidmapping where maccountplaintextreference is not null group by maccountplaintextreference )",
# V057: mappedcustomeridmapping
"delete from mappedcustomeridmapping where mcustomerplaintextreference is not null and id not in ( select min(id) from mappedcustomeridmapping where mcustomerplaintextreference is not null group by mcustomerplaintextreference )",
# V057: transactionidmapping
"delete from transactionidmapping where transactionplaintextreference is not null and id not in ( select min(id) from transactionidmapping where transactionplaintextreference is not null group by transactionplaintextreference )",
# V116: mappedatm
"delete from mappedatm where mbankid is not null and matmid is not null and id not in ( select min(id) from mappedatm where mbankid is not null and matmid is not null group by mbankid, matmid )",
# V116: mappedcomment
"delete from mappedcomment where apiid is not null and id not in (select min(id) from mappedcomment where apiid is not null group by apiid)",
# V116: mappedtag
"delete from mappedtag where tagid is not null and id not in (select min(id) from mappedtag where tagid is not null group by tagid)",
# V116: mappedtransactionimage
"delete from mappedtransactionimage where imageid is not null and id not in ( select min(id) from mappedtransactionimage where imageid is not null group by imageid )",
# V116: consent_item
"delete from consent_item where consent_item_id is not null and id not in ( select min(id) from consent_item where consent_item_id is not null group by consent_item_id )",
]


def normalise(sql: str) -> str:
"""Collapse whitespace, so YAML indentation does not count as a difference."""
return re.sub(r"\s+", " ", sql).strip().rstrip(";").lower()


def main() -> int:
if not CHANGELOG_DIR.is_dir():
print(f"check_changelog_data_migrations: {CHANGELOG_DIR} does not exist", file=sys.stderr)
return 1

changelog = "\n".join(p.read_text() for p in sorted(CHANGELOG_DIR.rglob("*.yaml")))
haystack = normalise(changelog)

missing = [stmt for stmt in EXPECTED if stmt not in haystack]

print(f"check_changelog_data_migrations: {len(EXPECTED)} de-duplication statement(s) expected, "
f"{len(EXPECTED) - len(missing)} present in the changelog")
if missing:
print("", file=sys.stderr)
print("These statements are missing from the changelog:", file=sys.stderr)
for stmt in missing:
print(f" {stmt[:150]}", file=sys.stderr)
print("", file=sys.stderr)
print("They belong in db/changelog/db.changelog-dedup.yaml as `sql` changesets, ordered "
"before the createIndex they clear the way for. Without them a unique index cannot "
"be built on a database that already holds duplicate rows - which is every existing "
"deployment whose constraint was missing.", file=sys.stderr)
return 1
return 0


if __name__ == "__main__":
sys.exit(main())
Loading
Loading