Repository navigation
1.6.9
Highlights
- Column-based multi-tenancy: filter rows per tenant using a tenant column. (#936)
- Primary key in the URL: read a single row with a path-based primary key, including composite keys. (#945)
- New filter operators:
notinandout. (#937) - Case-sensitive PostgreSQL table names: mixed-case and Unicode table names such as
"FilmData"now work for reads and writes. (#948, #967, #971; fixes #916)
Fixes
- Multi-tenancy: a user whose roles match none of a table's role data filters now sees only rows with a null tenant column, instead of every tenant's data. (#973, originally #950 by @janblok)
- PostgreSQL: boolean values in filters are now cast correctly. (#947)
- PostgreSQL: schema and table names in generated SQL are now quoted. (#948)
- SQL templates: GET requests for templates without extra path variables reach the template controller again. (#967)
- SQL templates: template names are validated before any file is read. Path traversal, absolute paths and symlinks are rejected. (#967)
- Multiple databases: the database routing context is cleared after every request, including failed and asynchronous ones, so a reused thread can't send a request to the wrong database. (#968, fixes #958)
- PostgreSQL: JDBC arrays are created on the statement's own connection and released afterwards. (#969, fixes #959)
- Named SQL now behaves like stored procedures. (#933)
Behavior changes
limitandoffsetare validated on read endpoints. Invalid values now return400 Bad Requestinstead of being passed to the database. (#949)- SQL template names are restricted to safe file name characters. Names containing path separators,
.., or other unsafe characters are rejected. (#967)
Known issues
- The path-based primary key route can catch requests meant for some reserved paths, such as
count,existsandone. A fix is tracked in #961. - Multi-tenancy: writes by users without a tenant role set the tenant column to null, and tables whose tenant column is
NOT NULLreject those writes. Follow-ups are tracked in #974.
Internal
- Refactoring in
db2rest-coreservice, validator and DTO packages. (#939, #942) - More PostgreSQL regression tests for case-sensitive table names. (#967, #971)
Upgrading
- Maven:
io.9tiger:*:1.6.9 - Docker:
docker pull kdhrubo/db2rest:v1.6.9orkdhrubo/db2rest:latest
Full changelog: 1.6.8...1.6.9