Skip to content

v1.53.1

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 22:03
· 1 commit to main since this release
2990604

A patch release for the import, search and metadata profile bugs reported since v1.53.0, plus one small feature: OIDC client secrets can come from the environment. One database migration runs on its own at startup, and there are three behaviour changes, listed below.

Upgrade notes

  • Rolling back to v1.53.0 does not work without restoring a backup, so take a backup before upgrading. Migration 137 stays recorded in the database, and a v1.53.0 binary refuses to start on a schema_migrations table with a version it does not know. The migration only repoints authors whose metadata profile no longer exists, and its Down section does nothing because the old ids named nothing.
  • Migration 137 repoints authors whose metadata profile was deleted (#4132). Such an author now points at the profile chosen by the new Default metadata profile for new authors setting, or at the lowest profile id that still exists. Nothing changes when no profile exists, and authors with no profile set are left alone.
  • An author with no metadata profile at all is no longer filtered by language (#4132). When no metadata profile exists, search, import and sync apply no language filter, where they used to disagree. Create a profile under Settings, Metadata Profiles to filter again.
  • Releases tagged with your profile's language now rank higher (#4130). On a default install, where the profile allows English, a release tagged English now beats an untagged release of a better format. A profile that allows any language ranks exactly as before.
  • OIDC provider ids are stricter (#4159). A new provider id must be lowercase letters, digits, _ or -, at most 32 characters, and two ids that would share one environment variable (my-idp and my_idp) cannot be saved together. Providers you already have keep working.

Added

  • OIDC client secrets can come from the environment (#4159). Set BINDERY_OIDC_<ID>_CLIENT_SECRET (for example BINDERY_OIDC_KEYCLOAK_CLIENT_SECRET for a provider with id keycloak) and Bindery uses it instead of the stored secret. Saving a provider no longer writes a secret for it, and the provider form shows the field as set via environment variable with the variable name. Also set BINDERY_OIDC_<ID>_ISSUER to the provider's issuer: the secret is then only ever used with that issuer, and a save that points the provider elsewhere is refused. Without it, an admin could point the provider at another issuer and receive the secret. A secret you stored earlier stays in the database and backups until you delete and re-add the provider. Works with Docker and Kubernetes secrets and other secret injectors. Thanks to GianniBYoung for the request.

Changed

  • Releases in your profile's language now rank higher (#4130). When a metadata profile lists allowed languages, a release whose name is tagged with one of them is ranked above an untagged release, enough to outweigh a better format or a RETAIL tag. Before, the language setting could only drop wrong language releases, so an untagged English release often won over the tagged German ones for a German library. This includes the default profile, which allows English: on a default install a release tagged English now beats an untagged one of a better format. Only a profile that allows any language ranks exactly as before. An exact ASIN or ISBN match still outranks a language only match. Thanks to BraynArts for the report.

Fixed

  • Authors whose metadata profile was deleted no longer lose their language filter (#4132). Add Book and the Add Author API gave new authors a hard coded profile 1, so after you deleted that profile the author pointed at nothing, and search, import, catalogue sync and reconcile each treated that differently: search filtered nothing, import fell back to the preferred language, sync allowed English only and reconcile gave up. They now share one rule. An author's own profile is used if it exists, otherwise the new Default metadata profile for new authors setting under Settings, Metadata Profiles (empty means the first profile that exists). New authors get that default on every path, deleting a profile that authors still use is refused with the number of authors affected (or move them in the same step), the author page warns when its profile is missing, and upgrading repoints existing orphaned authors. Thanks to BraynArts for the detailed report.
  • A download that holds only a zip or a 7z now says it is waiting for an unpacker (#4131). Before, it was reported as "no book files found" and spent its import retries, because only .rar counted as an archive. A .zip, a .7z and a split .7z.001 are now recognised like a .rar: the Queue names the archive and its type, no retries are spent, and the archive stays out of the library in copy and hardlink modes. Bindery still does not unpack archives, so use unpackerr or your download client for that. Unpacking a zip in Bindery is planned separately. .cbz and .epub files are untouched. Thanks to @BraynArts for the report.
  • Book search (#4076). Reject numbered sequels such as Mage Tank 3 by Cornman when searching for a subtitled book with a different known series position. Thanks to condensed69 for reporting it and writing the fix.
  • A download with several ebook formats now shows the preferred one even when it was imported last (#4142). When one download held, say, a PDF, an AZW3, a MOBI and an EPUB, the book could end up showing the AZW3 as its file instead of the EPUB. Bindery picked the format to show while the newest file was still being put in place, so the file imported last was never considered, and a library scan was needed to correct it. The choice is now made again once each file has landed, so the book shows the most preferred format (EPUB, KEPUB, AZW3, MOBI, PDF) straight after the import. All the files were always imported and tracked; only the one shown on the book was wrong. Thanks to FazalAAli for the report and the diagnosis.
  • BookOrbit import no longer creates duplicate books when the file is already tracked (#4077). When the file an item reports is already on a Bindery book under a different spelling of the author, the item is parked in the review queue instead of creating a new author and a new wanted book that could never take the file.
  • Failed import items are now listed on the run (#4077). A failed item is recorded in the import run's entities with its message, so after a run there is a list of what failed instead of only the last 100 status results. Thanks to gavinmcfall for the report and to Huyvux12 for the fix.