Commit Graph
897 Commits
Author SHA1 Message Date
brios 05185eefb0 chore(banner): add ASCII art banner (#381) 2026-04-22 17:27:03 -04:00
James Ward 7e796ec491 chore(api): fix typo on openapi doc for healthcheck (#380)
s/healch/health/
2026-04-22 17:27:02 -04:00
4ce918891b fix(file): allow physical books to be moved between libraries (#296)
* chore(release): 2.3.0 [skip ci]

## [2.3.0](https://github.com/grimmory-tools/grimmory/compare/v2.2.6...v2.3.0) (2026-03-21)

### Features

* **release:** document develop-based stable release previews ([930e526](https://github.com/grimmory-tools/grimmory/commit/930e5262285540b3b65b9ef4f7be328a05dfb5b4))

### Bug Fixes

* **api:** fix potential memory leaks in file processing ([031e8ae](https://github.com/grimmory-tools/grimmory/commit/031e8ae257c3354cacce2d17c8c6bc35ce80badb))
* **ci:** correct artifact download action pin ([37ca101](https://github.com/grimmory-tools/grimmory/commit/37ca101dd4bd08ccfe6d4d2395ecc71298cc323d))
* **ci:** publish PR test results from workflow_run ([11a76bf](https://github.com/grimmory-tools/grimmory/commit/11a76bffe12f80d0271e3626291cfbd275346727))
* **ci:** repair release preview and test result publishing ([afa5b81](https://github.com/grimmory-tools/grimmory/commit/afa5b818ebe612e66acc819aa398ac0c6184d21b))
* drop telemetry from app ([#52](https://github.com/grimmory-tools/grimmory/issues/52)) ([4d82cb7](https://github.com/grimmory-tools/grimmory/commit/4d82cb718833a2a4e08ee2f18b2ff3ab9b043dd6))
* **ui:** repair frontend compile after rebrand ([fea1ec6](https://github.com/grimmory-tools/grimmory/commit/fea1ec6930ae64445c6d7e7b38bdc4e7925b51c1))

### Refactors

* **build:** rename frontend dist output to grimmory ([ecf388f](https://github.com/grimmory-tools/grimmory/commit/ecf388f7a2086fbd1d8737a972926d70ec3190d4))
* **i18n:** rename booklore translation keys to grimmory ([eb94afa](https://github.com/grimmory-tools/grimmory/commit/eb94afa7ad600eaa2535802583f21937bd1ae2c0))
* **metadata:** move default parser from Amazon to Goodreads ([e252122](https://github.com/grimmory-tools/grimmory/commit/e252122bc5a89c75af85ddbaae66a14d368479f9))
* pull kepubify & ffprobe during build ([#50](https://github.com/grimmory-tools/grimmory/issues/50)) ([1c15629](https://github.com/grimmory-tools/grimmory/commit/1c15629a10ba2e2ad78455f118e8c937b585b157))
* **ui:** rebrand frontend surfaces to grimmory ([d786dd8](https://github.com/grimmory-tools/grimmory/commit/d786dd8ccbebaa360385dce834816bcb6aaf3b2f))

### Chores

* **api:** remove the custom startup banner ([98c9b1a](https://github.com/grimmory-tools/grimmory/commit/98c9b1ae653c2140b7b2ab86b5511be3376bfe43))
* **deps:** bump flatted from 3.4.1 to 3.4.2 in /booklore-ui ([#73](https://github.com/grimmory-tools/grimmory/issues/73)) ([c4bd0c7](https://github.com/grimmory-tools/grimmory/commit/c4bd0c779ae398968dbdea6d566693ed57eab3eb))
* **funding:** point support links at opencollective ([55c0ac0](https://github.com/grimmory-tools/grimmory/commit/55c0ac089966b8586e7d7bdef1fc469049903d08))
* **release:** 2.2.7 [skip ci] ([0b5e24c](https://github.com/grimmory-tools/grimmory/commit/0b5e24c23848c9e97b04f4221303d0b4bf0b2dd7))
* remove old verbose PR template, replace with temporary more low-key one. ([#84](https://github.com/grimmory-tools/grimmory/issues/84)) ([b868526](https://github.com/grimmory-tools/grimmory/commit/b8685268a9a9730416a209201a70c284cee590c5))
* **ui:** drop financial support dialog ([#21](https://github.com/grimmory-tools/grimmory/issues/21)) ([62be6b1](https://github.com/grimmory-tools/grimmory/commit/62be6b152cbd42910620fdeae1f35783ea258b27))

### Documentation

* updated supported file formats in README.md ([#68](https://github.com/grimmory-tools/grimmory/issues/68)) ([f912e80](https://github.com/grimmory-tools/grimmory/commit/f912e802f97263206308817acd5bab84a5321dcf))

### Style

* **i18n:** normalize translation json formatting ([#89](https://github.com/grimmory-tools/grimmory/issues/89)) ([857290d](https://github.com/grimmory-tools/grimmory/commit/857290d215b518e61c9b3a058ae5d40d5e214672))
* **ui:** simplify the topbar logo branding ([0416d48](https://github.com/grimmory-tools/grimmory/commit/0416d48a6c441792b4c9607b3e472159c879d439))

* fix(file): deduplicate bookFiles and protect source library root in FileMoveService

* fix(shelf): include public shelves in filterShelvesByUserId

* fix(shelf): centralize shelf visibility predicate and deduplicate book files by ID

* fix(shelf): controll for null userid

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: msmouse <git@dsmouse.com>
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:27:02 -04:00
James Ward b05d76d594 chore(api): drop unused code in AmazonBookParser and AudibleParser (#368) 2026-04-22 17:27:01 -04:00
brios 64083fe9b7 feat(pdf): integrate PDFium4j for PDF processing and metadata extraction (#281)
* feat(pdf): integrate PDFium4j for PDF processing and metadata extraction

* feat(pdf): update PDFium4j to version 0.12.0 and optimize XMP metadata handling

* feat(pdf): update PDFium4j to version 0.13.0

* feat(pdf): enhance cross-compilation support and improve XML parsing in metadata extraction

* Delete dev.local-libs.docker-compose.yml

* feat(pdf): update PDFium4j to version 0.14.0
2026-04-22 17:27:01 -04:00
briosandcoderabbitai[bot] ad3a981ad1 fix(hibernate): improve transaction management and optimize entity fetching (#176)
* fix(hibernate): improve transaction management and optimize entity fetching

* chore(tests): clean-up comments

* chore: fix config issue in the kotlin dsl

* fix(hibernate): fix entity equality checks

* fix(hibernate): add transactional read-only support to BookService

* Update booklore-api/src/main/java/org/booklore/model/entity/BookLoreUserEntity.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(hibernate): remove redundant annotations in BookLoreUserEntity

* fix(hibernate): import Hibernate

* fix(tests): fix merge conflict caused errors

* refactor(book): optimize book retrieval methods and reduce cache sizes

* refactor(metadata): remove lazy loading from description field in BookMetadataEntity

* fix(build): increase max heap size for test tasks

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-22 17:27:01 -04:00
brios 390a37266c refactor(config): remove redundant Spring Boot config and fix injection patterns (#314)
* refactor(config): remove redundant Spring Boot config and fix injection patterns

- Delete TransactionConfig (Spring Boot auto-configures JpaTransactionManager)
- Delete MultipartConfig (replaced with spring.servlet.multipart.* properties)
- Delete BeanConfig (RestTemplate moved to RestClientConfig, WS stats to WebSocketConfig)
- Remove duplicate @EnableScheduling from TaskSchedulerConfig
- Fix @ConfigurationProperties: remove @Component from AppProperties, change
  @Configuration to @ConfigurationProperties on BookmarkProperties
- Move RestTemplate bean to RestClientConfig
- Add WS stats suppression to WebSocketConfig via ApplicationReadyEvent
- Remove @Autowired from KepubConversionService, GoogleParser,
  HardcoverBookSearchService (single-constructor injection)
- Remove redundant two-arg constructor from GoogleParser
- Fix CbxReaderService pre-existing compile error (transferEntryTo)

* refactor(config): add primary RestTemplate bean and include audiobook settings in persistence configuration
2026-04-22 17:27:00 -04:00
NamLe029andbrios 5495225ad5 feat(web-reader): HTTP Caching & Cache Storage for content responses (#75)
* Squashed commit of the following:

commit e799d02a1b3557fcbe9c67bd276ced9ddc783e83
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:47:08 2026 +0700

    should be done

commit d232c4d48bd97dbc7d8d800cdb3d18e85a73b8ec
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:32:49 2026 +0700

    ok done

commit 911d69c3347c6596ae0feb3261355f7b234b6171
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:32:15 2026 +0700

    dont break pls

commit 498e996bb42a74f9edda65b914a9124b15a8baea
Author: Nam Le <namle888029@gmail.com>
Date:   Sat Mar 21 11:35:32 2026 +0700

    changes:
    + avoid double caching
    + detach get & validate logic
    + error handling for cache insert

commit a215d11d6855a3381e4f2ecbca32d45d4b06869f
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 22:01:37 2026 +0700

    fix dup

commit 539b70f6f9c859bdf6d2a2557e3ba1c1fc10a601
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 21:46:43 2026 +0700

    fix
    + leaking Blob resource
    + scss lint
    + extra `}`

commit d1c8ceea944c0a25a9a2a54bb83122e0a9480b05
Author: NamLe029 <146613205+NamLe029@users.noreply.github.com>
Date:   Fri Mar 20 21:34:14 2026 +0700

    Apply suggestions from code review

    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

commit ca14572c8c6df143295ebff2acf210f3a5164ed5
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 20:25:46 2026 +0700

    wording

commit 558b0f69fe6a6736aa114f592abd87451b173ccb
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 19:51:28 2026 +0700

    remove dexie

commit 4b0750824685e70dd5a13fd9e899064fd6b009c6
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 19:22:43 2026 +0700

    use observable for pdf bookdata

commit 1c88aff7c01a51a5263aca3522797624ed794862
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:07:14 2026 +0700

    switch to cache storage

commit c766428c32b97fab339b3438b6c4e693082a07a3
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 15:13:42 2026 +0700

    error handling

commit bdbaa8f5f769fcd80f3f93aac0c52ffba8bcec27
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 14:16:49 2026 +0700

    cleanup unecessary validation

commit 56e264ee5570948cf1512c8ce4de4622430d3cdc
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:50:45 2026 +0700

    apply simpleCacheService

commit 45ef6ae5d460b27d134b696951fd613eefcb2d64
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:02:44 2026 +0700

    interface for local settings

commit 421305dbcb108647b5f0cc29c567de5daee2a93d
Author: Nam Le <namle888029@gmail.com>
Date:   Wed Apr 1 18:01:20 2026 +0700

    simple cache service for caching request response

commit 1aa81b4a08b006d52e398da61464527fd90e51cb
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:47:54 2026 +0700

    local settings service for device-scoped settings

commit 647b4f561336617651f5c4f14fe83dc70df3f30f
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:46:35 2026 +0700

    add dexie dependency

commit d8bfed64b0096c2d99052fceee718413b5dc8b40
Author: Nam Le <namle888029@gmail.com>
Date:   Fri Mar 20 12:46:00 2026 +0700

    enable HTTP Caching (Last-Modified) for PDF, EPUB, audiobook content response

* delete unused

* final touch

* move local settings

* test

* remove test case for deleted  method

* lint

---------

Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:27:00 -04:00
dependabot[bot] 73857a81ed chore(deps): bump the gradle-dependencies group (#350)
Bumps the gradle-dependencies group in /booklore-api with 3 updates: [org.mariadb.jdbc:mariadb-java-client](https://github.com/mariadb-corporation/mariadb-connector-j), org.flywaydb:flyway-mysql and [tools.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom).


Updates `org.mariadb.jdbc:mariadb-java-client` from 3.5.7 to 3.5.8
- [Release notes](https://github.com/mariadb-corporation/mariadb-connector-j/releases)
- [Changelog](https://github.com/mariadb-corporation/mariadb-connector-j/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mariadb-corporation/mariadb-connector-j/compare/3.5.7...3.5.8)

Updates `org.flywaydb:flyway-mysql` from 12.2.0 to 12.3.0

Updates `tools.jackson:jackson-bom` from 3.1.0 to 3.1.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-3.1.0...jackson-bom-3.1.1)

---
updated-dependencies:
- dependency-name: org.mariadb.jdbc:mariadb-java-client
  dependency-version: 3.5.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.flywaydb:flyway-mysql
  dependency-version: 12.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle-dependencies
- dependency-name: tools.jackson:jackson-bom
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 17:27:00 -04:00
brios 02b2087c17 refactor(service): replace manual caching with @Cacheable and JPQL with Criteria API (#316)
- Replace AppSettingService double-checked locking (volatile + ReentrantLock)
  with Spring @Cacheable/@CacheEvict on appSettings cache
- Add appSettings cache name to CacheConfig
- Replace NotificationService dynamic JPQL string concatenation
  with type-safe JPA Criteria API (CriteriaBuilder predicates)
2026-04-22 17:26:59 -04:00
James Ward 0c87e371e3 fix(api): stop using dropped streamEntryFromArchive (#315)
the `streamEntryFromArchive` helper was replaced with
`ArchiveService.transferEntryTo` and during the merge of #113
we had a conflict that was automatically resolved incorrectly

this replaces the erroneous call with the expected
to fix the build
2026-04-22 17:26:59 -04:00
James Ward 1e0b4d0fd5 refactor(api): use NightCompress library for reading CBX (#113)
* build: drop unrar from dockerfile

* build: add libarchive to dockerfile

* ci: add libarchive for tests

* build: try adding to the gradle build

* refactor: use nightcompress for reading CBX

* test: disable tests using nightcompress when unavailable

* ci: drop showing java information

* build: add libarchive to dev compose

* build: fix libarchive link in alpine

seems alpine doesn't create libarchive.so and this seems to be the
easiest approach to fix that

* build: use expected order for allowing java to use native libs

* fix: ensure we initialize NightCompress before using it

* fix: properly find input stream

* fix: return amount of data copied

* test: add helper to turn off tests in ArchiveService

* test: rewrite CbxMetadataExtractorTest to mock archiveService

* refactor: expose `Path` to make `CbxMetadataExtractor` easier to test

* test: drop now useless test

* test: add archiveservice to rar5 integration

* test: mock out archiveservice in cbxreader test

* test: use real archiveservice in cbxconverstionintegration

* file: the cbxconversionservicetest also seems to be integration

* test: remove unused imports from cbxmetadataextractortest

* test: cbxcomicinfocompliance is also an integration

* test: cbxmetadatawriter is also integration

* chore: drop unused properties

* test: make cbxmetadataextractortest do something for covers

before it was basically useless because of fallback

* fix: invert check

* chore: better comment

* test: fix more cbxmetadataextractor tests that never worked

* test: we only ever raise ioexception

* fix: handle `null` comicinfo when parsing

* test: properly test for no files comicinfo

* build: manual link of dev docker compose

* test: if you use any matchers, all must be

* build: drop unrar from dev compose

* test: if you use any matchers, all must be

* test: always get a fresh stream

* test: drop more toFile
2026-04-22 17:26:59 -04:00
brios bfeeef268d fix(websocket): add heartbeat scheduling and transport limits (#313) 2026-04-22 17:26:58 -04:00
brios 145b94dfc9 fix(security): add access control annotations to various controllers (#312)
* fix(security): add access control annotations to various controllers

* fix(security): improve authentication checks, add null checks
2026-04-22 17:26:58 -04:00
Zach 5ac7b5553e feat(api-docs): reintroduce API doc generation (#289)
- reintroduces API doc generation via API_DOCS_ENABLED
- accessible publicly via /api/docs and /api/openapi.json
2026-04-22 17:26:58 -04:00
brios 61b9b53a60 feat(reader): add document mode to the PDF viewer, overhaul PDF viewer, add different modes to CBX viewer (#306)
* feat(reader): add document mode to the PDF viewer, overhaul PDF viewer, add different modes to CBX viewer

* feat(reader): improve reader settings with brightness, emulate book mode, and click-to-paginate options

* feat(reader): add long strip scroll mode and update related settings
2026-04-22 17:26:57 -04:00
Zach a3add5ded9 fix(webmvc): avoid index fallback exception for missing public routes (#298)
Return normal 404 behaviour when static resources are missing in backend only runs, by preventing a fallback to a missing index handler for unresolved routes
2026-04-22 17:26:57 -04:00
Peri Diane Jonesandmsmouse 1625055689 fix(file): deduplicate bookFiles and protect source library root in FileMoveService (#294)
Co-authored-by: msmouse <git@dsmouse.com>
2026-04-22 17:26:57 -04:00
Nicholas Kirschbaum 8bdf36d6aa fix(api): merge processFile() transactions with calling transactions (#287)
- swaps propagation mode to REQUIRED to merge transactions so that multiple transactions do not modify the same book at the same time and conflict
2026-04-22 17:26:57 -04:00
Jinandgithub-actions[bot] c1711dd0c1 fix(backend): Fix metadata fields being stripped from API response, causing issues with filtering. (#250)
* chore(release): 2.3.0 [skip ci]

## [2.3.0](https://github.com/grimmory-tools/grimmory/compare/v2.2.6...v2.3.0) (2026-03-21)

### Features

* **release:** document develop-based stable release previews ([930e526](https://github.com/grimmory-tools/grimmory/commit/930e5262285540b3b65b9ef4f7be328a05dfb5b4))

### Bug Fixes

* **api:** fix potential memory leaks in file processing ([031e8ae](https://github.com/grimmory-tools/grimmory/commit/031e8ae257c3354cacce2d17c8c6bc35ce80badb))
* **ci:** correct artifact download action pin ([37ca101](https://github.com/grimmory-tools/grimmory/commit/37ca101dd4bd08ccfe6d4d2395ecc71298cc323d))
* **ci:** publish PR test results from workflow_run ([11a76bf](https://github.com/grimmory-tools/grimmory/commit/11a76bffe12f80d0271e3626291cfbd275346727))
* **ci:** repair release preview and test result publishing ([afa5b81](https://github.com/grimmory-tools/grimmory/commit/afa5b818ebe612e66acc819aa398ac0c6184d21b))
* drop telemetry from app ([#52](https://github.com/grimmory-tools/grimmory/issues/52)) ([4d82cb7](https://github.com/grimmory-tools/grimmory/commit/4d82cb718833a2a4e08ee2f18b2ff3ab9b043dd6))
* **ui:** repair frontend compile after rebrand ([fea1ec6](https://github.com/grimmory-tools/grimmory/commit/fea1ec6930ae64445c6d7e7b38bdc4e7925b51c1))

### Refactors

* **build:** rename frontend dist output to grimmory ([ecf388f](https://github.com/grimmory-tools/grimmory/commit/ecf388f7a2086fbd1d8737a972926d70ec3190d4))
* **i18n:** rename booklore translation keys to grimmory ([eb94afa](https://github.com/grimmory-tools/grimmory/commit/eb94afa7ad600eaa2535802583f21937bd1ae2c0))
* **metadata:** move default parser from Amazon to Goodreads ([e252122](https://github.com/grimmory-tools/grimmory/commit/e252122bc5a89c75af85ddbaae66a14d368479f9))
* pull kepubify & ffprobe during build ([#50](https://github.com/grimmory-tools/grimmory/issues/50)) ([1c15629](https://github.com/grimmory-tools/grimmory/commit/1c15629a10ba2e2ad78455f118e8c937b585b157))
* **ui:** rebrand frontend surfaces to grimmory ([d786dd8](https://github.com/grimmory-tools/grimmory/commit/d786dd8ccbebaa360385dce834816bcb6aaf3b2f))

### Chores

* **api:** remove the custom startup banner ([98c9b1a](https://github.com/grimmory-tools/grimmory/commit/98c9b1ae653c2140b7b2ab86b5511be3376bfe43))
* **deps:** bump flatted from 3.4.1 to 3.4.2 in /booklore-ui ([#73](https://github.com/grimmory-tools/grimmory/issues/73)) ([c4bd0c7](https://github.com/grimmory-tools/grimmory/commit/c4bd0c779ae398968dbdea6d566693ed57eab3eb))
* **funding:** point support links at opencollective ([55c0ac0](https://github.com/grimmory-tools/grimmory/commit/55c0ac089966b8586e7d7bdef1fc469049903d08))
* **release:** 2.2.7 [skip ci] ([0b5e24c](https://github.com/grimmory-tools/grimmory/commit/0b5e24c23848c9e97b04f4221303d0b4bf0b2dd7))
* remove old verbose PR template, replace with temporary more low-key one. ([#84](https://github.com/grimmory-tools/grimmory/issues/84)) ([b868526](https://github.com/grimmory-tools/grimmory/commit/b8685268a9a9730416a209201a70c284cee590c5))
* **ui:** drop financial support dialog ([#21](https://github.com/grimmory-tools/grimmory/issues/21)) ([62be6b1](https://github.com/grimmory-tools/grimmory/commit/62be6b152cbd42910620fdeae1f35783ea258b27))

### Documentation

* updated supported file formats in README.md ([#68](https://github.com/grimmory-tools/grimmory/issues/68)) ([f912e80](https://github.com/grimmory-tools/grimmory/commit/f912e802f97263206308817acd5bab84a5321dcf))

### Style

* **i18n:** normalize translation json formatting ([#89](https://github.com/grimmory-tools/grimmory/issues/89)) ([857290d](https://github.com/grimmory-tools/grimmory/commit/857290d215b518e61c9b3a058ae5d40d5e214672))
* **ui:** simplify the topbar logo branding ([0416d48](https://github.com/grimmory-tools/grimmory/commit/0416d48a6c441792b4c9607b3e472159c879d439))

* Fix backend from stripping fields

* Strip metadata fields by default in backend

* Fix merge conflicts

* Revert yarn.lock change

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-22 17:26:55 -04:00
brios 3f8a1852a6 fix(metadata): preserve lock states and fallback values in metadata refresh (#258) 2026-04-22 17:26:55 -04:00
brios 339a0c7f06 fix(metadata): include custom namespace fields in file write checks (#257)
* fix(metadata): include custom namespace fields in file write checks

* fix(metadata): simplify booklore metadata change checks and improve value validation
2026-04-22 17:26:55 -04:00
Riccardo CasazzaandClaude Opus 4.5 ebdcd0bc19 fix(api): skip physical books in metadata manager to prevent NPE (#234)
Physical books have no associated file, so calling getPrimaryBookFile()
returns null. The metadata manager was crashing with NullPointerException
when merging/consolidating metadata (authors, genres, etc.) that included
physical books.

This fix skips physical books in writeMetadataToFile() since there is no
file to write metadata to.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-22 17:26:55 -04:00
Nicholas Kirschbaum 2474cdd4ae Chore(api): Migrate BookCreatorServiceTests to AssertJ and remove unnessesary tests (#229)
* chore(apiTests): migrate BookCreatorServiceTest assertions to AssertJ

- Replaced JUnit assertions with AssertJ for richer failure messages
- Tightened collection assertions to verify element values rather than just size
- Removed redundant addAuthorsToBook_nullExistingAuthorsOnEntity_initializesSet test
- Added coverage-gap comment noting untested methods and missing cases

* chore(apiTests): reduce test complexity in BookCreatorServiceTests

- Changed to using parameterized tests where tests were the same apart from inputs
- Modified tests to be more specific about what exactly that test is checking
2026-04-22 17:26:54 -04:00
James Ward d7867bafc4 fix(api): handle kobo proxy errors during kobo sync (#217)
* fix(api): handle kobo proxy sync failures

when the kobo proxy fails, we no longer fail the sync entirely and
instead just skip the kobo request

* fix(api): always `Accept` application/json

* fix(api): handle edge case for an exception being impossibly raised

* fix(api): update try/catch to be just proxy
2026-04-22 17:26:54 -04:00
James Ward c4107a9ff8 feat(api): use redirect for kobo sync book images (#198)
* refactor(api): simplify routes for kobo thumbnails

the versioned thumbnails are not seemingly called by kobo
and are not in other implementations of kobo sync

* feat(api): use redirect for kobo book images

* chore(api): add documentation for thumbnail redirect
2026-04-22 17:26:54 -04:00
James Ward 66de45c4be refactor: drop unused standalone comicinfo.xml parser (#218) 2026-04-22 17:26:54 -04:00
dependabot[bot]andbrios 052c9323be chore(deps): bump the gradle-dependencies group across 1 directory with 8 updates (#224)
Bumps the gradle-dependencies group with 6 updates in the /booklore-api directory:

| Package | From | To |
| --- | --- | --- |
| org.flywaydb:flyway-mysql | `12.0.3` | `12.2.0` |
| [org.projectlombok:lombok](https://github.com/projectlombok/lombok) | `1.18.42` | `1.18.44` |
| org.apache.pdfbox:pdfbox | `3.0.6` | `3.0.7` |
| com.github.RouHim:jaudiotagger | `2.0.16` | `2.0.19` |
| org.glassfish.jaxb:jaxb-runtime | `4.0.6` | `4.0.7` |
| [gradle-wrapper](https://github.com/gradle/gradle) | `9.4.0` | `9.4.1` |



Updates `org.flywaydb:flyway-mysql` from 12.0.3 to 12.2.0

Updates `org.projectlombok:lombok` from 1.18.42 to 1.18.44
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/projectlombok/lombok/compare/v1.18.42...v1.18.44)

Updates `org.apache.pdfbox:pdfbox` from 3.0.6 to 3.0.7

Updates `org.apache.pdfbox:pdfbox-io` from 3.0.6 to 3.0.7

Updates `org.apache.pdfbox:xmpbox` from 3.0.6 to 3.0.7

Updates `com.github.RouHim:jaudiotagger` from 2.0.16 to 2.0.19

Updates `org.glassfish.jaxb:jaxb-runtime` from 4.0.6 to 4.0.7

Updates `gradle-wrapper` from 9.4.0 to 9.4.1
- [Release notes](https://github.com/gradle/gradle/releases)
- [Commits](https://github.com/gradle/gradle/compare/v9.4.0...v9.4.1)

---
updated-dependencies:
- dependency-name: org.flywaydb:flyway-mysql
  dependency-version: 12.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle-dependencies
- dependency-name: org.projectlombok:lombok
  dependency-version: 1.18.44
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:pdfbox
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:pdfbox-io
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:xmpbox
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: com.github.RouHim:jaudiotagger
  dependency-version: 2.0.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.glassfish.jaxb:jaxb-runtime
  dependency-version: 4.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: gradle-wrapper
  dependency-version: 9.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:26:53 -04:00
James Ward 97411fa51d refactor(api): use Path for FileUtils.getBookFullPath (#209)
* refactor(api): use `Path` for FileUtils.getBookFullPath

* test: update tests for new behavior
2026-04-22 17:26:53 -04:00
Pedro Nave 85c1749a13 fix(hardcover): use hardcover edition based on ISBN for syncing progress (#173)
* fix: use ISBN to match the edition to sync

* fix: optimize fallback to default editions when ISBN is not present

* chore: added tests for hardcover sync

* fix: handle cases where hardcover does not have page count
2026-04-22 17:26:53 -04:00
James Ward 5f06ab92e9 refactor(api): switch to Spring logging filter (#195)
* refactor(api): switch to Spring logging filter

instead of making our own logging filter via a OncePerRequest,
we can instead use the more fully featured CommonsRequestLoggingFilter
with a bit of customization sprinkled on to ignore websocket requests
and health check requests

* fix(api): check sensitive headers & move up path

* fix: invert path check
2026-04-22 17:26:53 -04:00
74c7ad5502 fix(cbx-reader): add GIF and BMP to supported image extensions (#230)
Co-authored-by: de.banker <hub9ray@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 17:26:53 -04:00
brios da88da5207 chore(sdkman): add Java version 25.0.2-tem to .sdkmanrc (#228) 2026-04-22 17:26:52 -04:00
brios 4e57719118 chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0 Final (#223)
* chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0.Final

* fix(read-status): replace String readStatus with ReadStatus enum in BookRuleEvaluatorService
2026-04-22 17:26:52 -04:00
James Cox 42d9dcb4d3 refactor(frontend): repoint repo tooling to the frontend path
- Tooling and automation:
  - update Dependabot and the frontend test workflow to read frontend-owned paths
  - keep published frontend test reports aligned with the renamed project directory
  - extend ignore rules for frontend-generated test output and local dependencies
- Local developer entrypoints:
  - repoint the root Justfile ui module at frontend/Justfile
  - update the dev compose bind mount to use ./frontend
  - update the Weblate setup script to source translations from frontend/src/i18n
- Build integration:
  - repoint the Docker frontend build stage to /workspace/frontend and the renamed source paths
  - update the backend Gradle fallback dist location to ../frontend/dist/grimmory/browser
- Repository guidance:
  - rewrite root docs and AGENTS references that still pointed at booklore-ui so contributor guidance matches the new directory name

- Validation:
  - not run; this commit is scoped to staged path rewrites only
2026-04-22 17:26:39 -04:00
Balázs Szücs 7d7a5d9c6e fix(security): enforce validation on request bodies and tighten JWT issuer checks 2026-04-22 17:26:37 -04:00
James Cox 69d50d4fb5 feat(devex): add a unified just command surface
- Command surface:
  - add a root `Justfile` with namespaced `api`, `ui`, and `release` modules so humans and agents can use the same entrypoints from the repo root
  - add project-local Justfiles for `booklore-api`, `booklore-ui`, and `tools/release` so each area remains self-contained and can still be driven from inside its own directory
  - standardize local developer workflows around `just check`, `just test`, `just api run`, `just ui dev`, `just db-up`, and `just image-build`

- Workflow integration:
  - update the reusable test suite workflow to install `just` and run backend and frontend CI steps through the Justfiles instead of hardcoded shell commands
  - update the semantic-release workflows to install `just` and invoke release tooling via `just release install`, `just release preview`, and `just release run`
  - keep the Docker image publication workflows on the native Docker actions while moving the project-command logic into the canonical command surface

- Documentation:
  - split backend and frontend implementation guidance into `booklore-api/README.md`, `booklore-api/CONTRIBUTING.md`, `booklore-ui/README.md`, and `booklore-ui/CONTRIBUTING.md`
  - simplify the top-level `README.md` and `CONTRIBUTING.md` so they stay focused on overview, policy, and navigation while pointing to component-specific guides for deeper detail
  - align contributor-facing examples on the `just` interface instead of mixing ad hoc Gradle, npm, Docker, and Compose commands

- Developer environment:
  - add `mise.toml` to pin the expected Java and Node toolchain versions for local work
  - switch the development Compose defaults from the old Booklore database values to Grimmory-oriented defaults
  - keep the command layout ready for a future API/UI split without forcing that packaging change yet
2026-04-22 17:26:35 -04:00
c9c255b15d refactor(icon): fix SVG icons loading straight to memory (#56)
* refactor(icon): fix SVG icon loading straight to memory

* refactor(icon): loading with improved error handling

* refactor(icon): add flag for SVG icons loading state

* chore(release): 2.3.0 [skip ci]

## [2.3.0](https://github.com/grimmory-tools/grimmory/compare/v2.2.6...v2.3.0) (2026-03-21)

### Features

* **release:** document develop-based stable release previews ([930e526](https://github.com/grimmory-tools/grimmory/commit/930e5262285540b3b65b9ef4f7be328a05dfb5b4))

### Bug Fixes

* **api:** fix potential memory leaks in file processing ([031e8ae](https://github.com/grimmory-tools/grimmory/commit/031e8ae257c3354cacce2d17c8c6bc35ce80badb))
* **ci:** correct artifact download action pin ([37ca101](https://github.com/grimmory-tools/grimmory/commit/37ca101dd4bd08ccfe6d4d2395ecc71298cc323d))
* **ci:** publish PR test results from workflow_run ([11a76bf](https://github.com/grimmory-tools/grimmory/commit/11a76bffe12f80d0271e3626291cfbd275346727))
* **ci:** repair release preview and test result publishing ([afa5b81](https://github.com/grimmory-tools/grimmory/commit/afa5b818ebe612e66acc819aa398ac0c6184d21b))
* drop telemetry from app ([#52](https://github.com/grimmory-tools/grimmory/issues/52)) ([4d82cb7](https://github.com/grimmory-tools/grimmory/commit/4d82cb718833a2a4e08ee2f18b2ff3ab9b043dd6))
* **ui:** repair frontend compile after rebrand ([fea1ec6](https://github.com/grimmory-tools/grimmory/commit/fea1ec6930ae64445c6d7e7b38bdc4e7925b51c1))

### Refactors

* **build:** rename frontend dist output to grimmory ([ecf388f](https://github.com/grimmory-tools/grimmory/commit/ecf388f7a2086fbd1d8737a972926d70ec3190d4))
* **i18n:** rename booklore translation keys to grimmory ([eb94afa](https://github.com/grimmory-tools/grimmory/commit/eb94afa7ad600eaa2535802583f21937bd1ae2c0))
* **metadata:** move default parser from Amazon to Goodreads ([e252122](https://github.com/grimmory-tools/grimmory/commit/e252122bc5a89c75af85ddbaae66a14d368479f9))
* pull kepubify & ffprobe during build ([#50](https://github.com/grimmory-tools/grimmory/issues/50)) ([1c15629](https://github.com/grimmory-tools/grimmory/commit/1c15629a10ba2e2ad78455f118e8c937b585b157))
* **ui:** rebrand frontend surfaces to grimmory ([d786dd8](https://github.com/grimmory-tools/grimmory/commit/d786dd8ccbebaa360385dce834816bcb6aaf3b2f))

### Chores

* **api:** remove the custom startup banner ([98c9b1a](https://github.com/grimmory-tools/grimmory/commit/98c9b1ae653c2140b7b2ab86b5511be3376bfe43))
* **deps:** bump flatted from 3.4.1 to 3.4.2 in /booklore-ui ([#73](https://github.com/grimmory-tools/grimmory/issues/73)) ([c4bd0c7](https://github.com/grimmory-tools/grimmory/commit/c4bd0c779ae398968dbdea6d566693ed57eab3eb))
* **funding:** point support links at opencollective ([55c0ac0](https://github.com/grimmory-tools/grimmory/commit/55c0ac089966b8586e7d7bdef1fc469049903d08))
* **release:** 2.2.7 [skip ci] ([0b5e24c](https://github.com/grimmory-tools/grimmory/commit/0b5e24c23848c9e97b04f4221303d0b4bf0b2dd7))
* remove old verbose PR template, replace with temporary more low-key one. ([#84](https://github.com/grimmory-tools/grimmory/issues/84)) ([b868526](https://github.com/grimmory-tools/grimmory/commit/b8685268a9a9730416a209201a70c284cee590c5))
* **ui:** drop financial support dialog ([#21](https://github.com/grimmory-tools/grimmory/issues/21)) ([62be6b1](https://github.com/grimmory-tools/grimmory/commit/62be6b152cbd42910620fdeae1f35783ea258b27))

### Documentation

* updated supported file formats in README.md ([#68](https://github.com/grimmory-tools/grimmory/issues/68)) ([f912e80](https://github.com/grimmory-tools/grimmory/commit/f912e802f97263206308817acd5bab84a5321dcf))

### Style

* **i18n:** normalize translation json formatting ([#89](https://github.com/grimmory-tools/grimmory/issues/89)) ([857290d](https://github.com/grimmory-tools/grimmory/commit/857290d215b518e61c9b3a058ae5d40d5e214672))
* **ui:** simplify the topbar logo branding ([0416d48](https://github.com/grimmory-tools/grimmory/commit/0416d48a6c441792b4c9607b3e472159c879d439))

* fix(book-browser): prevent memory leaks by unsubscribing from observables (#80)

* test(icon): remove redundant initialization in IconServiceTest

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alex Fair <20632147+afairgiant@users.noreply.github.com>
2026-04-22 17:26:35 -04:00
4ac1d31bc6 fix(metadata): fix metadata fetching relying for filename "first" instead of better fields like ISBN in Goodreads/Bookdrop (#85)
* chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#1)

Dependabot couldn't find the original pull request head commit, ea510f40fc1855aa17a782e05b0d30547e84955e.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#2)

Dependabot couldn't find the original pull request head commit, faed6bf8a712c5fc793fa628157de25d97888131.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#3)

Dependabot couldn't find the original pull request head commit, f110823720b6dd773df014ba288a126d8837fe28.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#6)

Dependabot couldn't find the original pull request head commit, 9a8d7a1daf5afff06bb35e36607c3da9aa730e21.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(metadata): fix metadata fetching relying for filename "first" instead of better fields like ISBN in Goodreads/Bookdrop

* perf(ci): speed up image builds and centralize cache writes

- Image builds:
  - pin frontend and backend Docker build stages to the build platform so multi-arch packaging can reuse architecture-independent work
  - add an Angular build cache mount and move dynamic version metadata to the end of the runtime stage so static layers stay reusable across tags
  - reduce image workflow checkout depth and keep preview builds on `linux/amd64` only to avoid unnecessary QEMU and history overhead

- Cache policy:
  - make CI packaging smoke builds consume the shared image cache without writing new BuildKit cache state
  - make normal preview builds consume shared GHA and registry caches without mutating the canonical cache
  - keep nightly and stable release builds as the workflows that refresh the shared image cache in both GHA and registry backends

- Preview override:
  - add a `refresh_shared_cache` input to the preview workflow for an explicit no-cache rebuild that repopulates the shared cache when maintainers need to bust and refresh it
  - keep the default preview behavior optimized for fast disposable builds rather than cache churn

- Validation:
  - keep workflow YAML parsing clean after the cache-policy changes
  - keep `git diff --check` clean for the touched Docker and workflow files

* docs: Add a note about how to make a release

* chore: remove unncesary comments

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Cox <james@imaj.es>
2026-04-22 17:26:34 -04:00
brios ff14647bd8 chore(build): migrate Gradle build scripts from Groovy to Kotlin DSL (#100)
* chore(build): migrate Gradle build scripts from Groovy to Kotlin DSL

* chore(docker): update Gradle build files to Kotlin DSL in Dockerfile
2026-04-22 17:26:33 -04:00
James Ward 5d84097f28 fix(api): check legacy tools path for binaries (#146)
the kepubify / ffprobe binaries may be on disk but they're
in the "data" directory under `tools` rather than under the
current directory
2026-04-22 17:26:33 -04:00
brios 5bcef92b65 refactor(concurrency): improve thread management and locking in monitoring services (#137)
* refactor(concurrency): improve thread management and locking in monitoring services

* chore: remove unnecessary comments
2026-04-22 17:26:33 -04:00
brios aab68d55c8 refactor(geoip): replace ObjectMapper instantiation with JsonMapper for improved configuration (#139) 2026-04-22 17:26:32 -04:00
brios b905e825f3 refactor(entity): update fetch strategies to LAZY for improved relibility (#122) 2026-04-22 17:26:32 -04:00
Pedro Nave 8def367d03 fix(hardcover): add series position decimals and use primary books count (#87)
* fix: fixed halves missing from series number in Hardcover metadata

* fix: use series primary books count
2026-04-22 17:26:30 -04:00
briosanddependabot[bot] 3c0b5c0c9c fix(archive): infer archive type via Magic Numbers instead of filename (#79)
* chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 (#1)

Dependabot couldn't find the original pull request head commit, ea510f40fc1855aa17a782e05b0d30547e84955e.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump docker/setup-buildx-action from 3.12.0 to 4.0.0 (#2)

Dependabot couldn't find the original pull request head commit, faed6bf8a712c5fc793fa628157de25d97888131.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump docker/build-push-action from 6.19.2 to 7.0.0 (#3)

Dependabot couldn't find the original pull request head commit, f110823720b6dd773df014ba288a126d8837fe28.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 (#6)

Dependabot couldn't find the original pull request head commit, 9a8d7a1daf5afff06bb35e36607c3da9aa730e21.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(archive): infer archive type via Magic Numbers instead of filename

* fix(archive): improve archive type detection and improve logging for cover image retrieval

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 17:26:30 -04:00
Yussur Mustafa Orajiandbrios dc1fa74af7 fix(api): Use fixed-layout epub format in Kobo sync when necessary (Booklore PR Port) (#16)
* fix(api): Correct format for fixed-layout epub when using Kobo Sync

* chore: Cleanup duplicate code

* feat: Cache fixed-layout property in db

* fix: Missing nullcheck in after retrieving BookFileEntity

* fix: Remove memory leak in EpubReaderService.java

* chore: Avoid opening the epub twice for fixed-layout extraction

* chore: Fix DB migration from rebase

---------

Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:26:30 -04:00
Zach 5448205045 fix(reader): remove foliate allow-scripts and add CSP for EPUB resources 2026-04-22 17:00:24 -04:00
James Cox 98c9b1ae65 chore(api): remove the custom startup banner
- startup output:
  - remove the custom Spring Boot `banner.txt` resource that printed the Booklore ASCII art on application startup
  - let the API fall back to the default Spring Boot banner behavior instead of shipping fork-era branding in the logs
- cleanup:
  - drop the banner resource without changing runtime configuration or application logic
2026-03-20 20:23:20 -05:00
Balázs Szücs e252122bc5 refactor(metadata): move default parser from Amazon to Goodreads 2026-03-20 20:17:01 -05:00