* fix(ui): support all permissions for oidc groups
* fix(i18n): use users permissions translations
* chore(i18n): drop unused `settingsAuth.perms` keys
* fix(i18n): use settingsUsers prefix for all permissions
* fix(api): invert kobo book type check for downloads
with the previous organization of code paths this leads to an
exception being raised in the logs even though the response message
is fine
* style: drop extra newline
the book download proxy code path should never be called. this is
because the book download URL received as part of the kobo proxy points
at the Rakuten Kobo CDN rather than at grimmory. further, even if this
code could download the file from the CDN (it doesn't), it would be
pointless as we don't return it. instead of fixing the return this
drops the proxy from that code path
* fix(api): use CBX Extractor in the CBX processor
instead of implementing a separate cover detection algorithm in CBX
processor, this uses the CBXMetadataExtractor to fetch the cover image.
this means we now will take into account expected file names,
`ComicInfo.xml` definitions, and fall back to correctly sorted files
* style(api): drop unused imports
* fix(api): drop placeholder for cbx
this brings the CBX metadata extractor in line
with the other metadata extractors that return
null when no cover can be found
* fix: handle no cover
* chore(api): fix typing for kobo sync service
* feat(api): add more paths for grimmory/kobo API
* fix(api): disable kobo features if kobo is unavailable
* feat(api): add proxy flag to kobo setting
* feat(api): adhere to kobo proxy enabled flag
* feat(ui): add forward requests toggle
* fix(ui): load setting
* style: use assertNotNull
* fix: reduce advertised routes
this cuts down the advertised routes - in particular to reduce the
number of auth-related requests we will be taking on. we may eventually
want to do this but I want to reduce the amount of change in this PR
* fix: undo disable of kobo features
This reverts commit 1b242fa6614084b05c58ff3b24e142adb1bcf729.
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
* 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
* 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
* 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
* 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
this updates the cron to avoid running the telemetry ping when
telemetry is disabled so that personally identifiable information
is not sent off to other parties (an IP address, an installation ID)
this avoids a remote call to github's raw download
so the application is less reliant on public internet
access. further this prevents unknown failures
when the bg.png is removed or changed in the external repo