Repository navigation
chore: merge upstream seerr v3.5.2 - #37
Conversation
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Bijaya Budhathoki <20866084+BBijaya@users.noreply.github.com>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Weblate <noreply@weblate.org> Co-authored-by: ezn24 <eznotsimple@gmail.com>
Co-authored-by: Bas Trebus <bas.trebus@maastrichtuniversity.nl> Co-authored-by: Kisnov <gabrielmarfil0@gmail.com> Co-authored-by: Mateusz Lesiak <mateusz.lesiak01@gmail.com> Co-authored-by: Nils Karlsson Pyssling <nisse@users.noreply.translate.seerr.dev> Co-authored-by: Serhiy <sergey.bobrov83@gmail.com> Co-authored-by: SulliL <susu.leduc@gmail.com> Co-authored-by: Thadah D. Denyse <thadahdenyse@protonmail.com> Co-authored-by: Ulrik J <ulrikj@users.noreply.translate.seerr.dev> Co-authored-by: Weblate <noreply@weblate.org> Co-authored-by: cowegner <carsten@tupti.de> Co-authored-by: dtalens <dtalens@users.noreply.translate.seerr.dev> Co-authored-by: ezn24 <eznotsimple@gmail.com> Co-authored-by: ugyes <ferenc.bodi@live.com>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
Co-authored-by: Daniel G <daniel.guerra.997@gmail.com> Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Bas Trebus <bas.trebus@maastrichtuniversity.nl> Co-authored-by: Marek <mara.pavelka@gmail.com> Co-authored-by: Mateusz Lesiak <mateusz.lesiak01@gmail.com> Co-authored-by: Miguel Pacheco <runway-venus-kung@duck.com> Co-authored-by: Nils Karlsson Pyssling <nisse@users.noreply.translate.seerr.dev> Co-authored-by: SulliL <susu.leduc@gmail.com> Co-authored-by: Thadah D. Denyse <thadahdenyse@protonmail.com> Co-authored-by: Ulrik J <ulrikj@users.noreply.translate.seerr.dev> Co-authored-by: Weblate <noreply@weblate.org> Co-authored-by: centralsofware <centralsofware@gmail.com> Co-authored-by: ugyes <ferenc.bodi@live.com>
Co-authored-by: Adam <sromovskyadam@gmail.com> Co-authored-by: Weblate <noreply@weblate.org>
The check read the hash from a user loaded without the password column, so it never ran and a wrong or missing current password was accepted.
Users with Manage Users could strip the Admin permission from another admin or edit an admin's settings, and once demoted that admin could be deleted or have their password reset. Changes to an admin's account, settings and linked accounts are now limited to the owner and the admin themselves, and users can no longer change their own permissions through the user update endpoints.
The image cache grew without limit and stored dot-segment, encoded and repeated-slash variants of a path as separate entries, even with image caching disabled. The route now returns 404 when caching is off, rejects segments other than [\w.-] names and TMDB duotone sizes, and collapses repeated slashes. The tmdb and tvdb caches evict their oldest entries past 1 GiB including a fixed per-entry disk overhead, and tvdb is added to the cleanup job and cache stats.
# Conflicts: # .github/workflows/create-tag.yml # .github/workflows/cypress.yml # .github/workflows/detect-duplicate.yml # .github/workflows/helm.yml # .github/workflows/lint-helm-charts.yml # .github/workflows/pr-validation.yml # .github/workflows/rebuild-issue-index.yml # .github/workflows/renovate-helm-custom-hooks.yml # .github/workflows/seerr-labeller.yml # .github/workflows/stale.yml # .github/workflows/trivy-scan.yml # CONTRIBUTING.md # Dockerfile # bin/check-pr-template.mjs # charts/seerr-chart/Chart.yaml # charts/seerr-chart/README.md # charts/seerr-chart/README.md.gotmpl # charts/seerr-chart/templates/statefulset.yaml # charts/seerr-chart/values.yaml # cypress.config.ts # cypress/e2e/movie-details.cy.ts # cypress/e2e/providers/tvdb.cy.ts # cypress/e2e/pull-to-refresh.cy.ts # cypress/e2e/settings/discover-customization.cy.ts # cypress/e2e/user/auto-request-settings.cy.ts # cypress/e2e/user/profile.cy.ts # cypress/e2e/user/user-list.cy.ts # cypress/support/commands.ts # cypress/support/e2e.ts # package.json # pnpm-lock.yaml # server/api/jellyfin.ts # server/job/schedule.ts # server/lib/imageproxy.ts # server/lib/scanners/jellyfin/index.ts # server/lib/scanners/jellyfin/jellyfin.test.ts # server/routes/auth.ts # server/routes/user/usersettings.test.ts # server/routes/user/usersettings.ts # src/i18n/locale/cs.json # src/i18n/locale/tr.json # src/i18n/locale/uk.json # src/utils/plex.ts
Upstream moved to gh actions-lock. Its lockfile lists upstream's workflow set, so regenerate it for the fork's workflows and pin the fork-only ones the same way.
|
Important Review skippedToo many files! This PR contains 114 files, which is 14 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
# Conflicts: # .github/workflows/ci.yml
There was a problem hiding this comment.
This PR merges upstream Seerr v3.5.2 into the fork's master branch. It resolves conflicts by keeping the fork's Plex/Jellyfin auth code while adopting upstream's security fixes (canModifyUser checks, current-password validation), adopts upstream's Node 22.23.5 base image and optimized Dockerfile with exclude patterns for a smaller runtime, updates dependencies (notably sqlite3 5→6, next 16.2→16.4, zod 4.3→4.6), switches workflows from SHA pins to version tags with a regenerated actions.lock, and upgrades CI runners from ubuntu-24.04 to ubuntu-26.04. Tests pass (260 passed) and lint/typecheck are clean. The Docker image build and upgrade path are left to CI verification.
Not approved: the diff of server/api/servarr/radarr.ts, server/entity/MediaRequest.ts, server/i18n/locale/es-MX.json, server/i18n/locale/id.json, server/i18n/locale/sk.json, server/i18n/locale/zh-Hant.json, server/job/schedule.ts, server/lib/imageproxy.ts, server/lib/scanners/baseScanner.ts, server/lib/scanners/radarr/index.ts, server/lib/scanners/sonarr/index.ts, server/migration/sqlite/1608477467935-AddLastSeasonChangeMedia.ts, server/migration/sqlite/1611508672722-AddDisplayNameToUser.ts, server/migration/sqlite/1737320080282-AddBlacklistTagsColumn.ts, server/routes/imageproxy.ts, server/routes/request.ts, server/routes/settings/index.ts, server/routes/user/index.ts, server/routes/user/usersettings.ts, server/subscriber/MediaRequestSubscriber.ts, server/subscriber/MediaSubscriber.ts, src/components/Discover/Trending.tsx, src/components/MovieDetails/index.tsx, src/components/RequestModal/TvRequestModal.tsx, src/components/Settings/Notifications/NotificationsDiscord.tsx, src/components/Settings/Notifications/NotificationsSlack/index.tsx, src/components/Settings/SettingsJobsCache/index.tsx, src/components/Settings/SettingsMain/index.tsx, src/components/TvDetails/index.tsx, src/i18n/locale/ar.json, src/i18n/locale/bg.json, src/i18n/locale/cs.json, src/i18n/locale/da.json, src/i18n/locale/de.json, src/i18n/locale/el.json, src/i18n/locale/en.json, src/i18n/locale/es.json, src/i18n/locale/es_MX.json, src/i18n/locale/et.json, src/i18n/locale/eu.json, src/i18n/locale/fi.json, src/i18n/locale/fr.json, src/i18n/locale/he.json, src/i18n/locale/hi.json, src/i18n/locale/hr.json, src/i18n/locale/hu.json, src/i18n/locale/id.json, src/i18n/locale/it.json, src/i18n/locale/ja.json, src/i18n/locale/kab.json, src/i18n/locale/ko.json, src/i18n/locale/lb.json, src/i18n/locale/lt.json, src/i18n/locale/nb_NO.json, src/i18n/locale/nl.json, src/i18n/locale/pl.json, src/i18n/locale/pt_BR.json, src/i18n/locale/pt_PT.json, src/i18n/locale/ro.json, src/i18n/locale/ru.json, src/i18n/locale/sk.json, src/i18n/locale/sl.json, src/i18n/locale/sq.json, src/i18n/locale/sr.json, src/i18n/locale/sv.json, src/i18n/locale/tr.json, src/i18n/locale/uk.json, src/i18n/locale/vi.json, src/i18n/locale/zh_Hans.json, src/i18n/locale/zh_Hant.json, src/pages/movie/[movieId]/index.tsx, src/pages/tv/[tvId]/index.tsx, src/utils/refreshIntervalHelper.ts, server/api/plextv.test.ts, server/api/servarr/radarr.test.ts, server/lib/imageproxy.test.ts, server/lib/scanners/baseScanner.test.ts, server/lib/scanners/radarr/radarr.test.ts, server/lib/scanners/sonarr/sonarr.test.ts, server/routes/imageproxy.test.ts, server/routes/request.test.ts, server/routes/user/index.test.ts, server/test/users.ts, src/utils/refreshIntervalHelper.test.ts was too large to read.
review-bot, model nvidia/nemotron-3-ultra-550b-a55b:free, verdict comment
|
Review of the code files the review bot could not read (locale JSON excluded), against head 80b367d. No lost security checks. The Findings:
|
Description
Sync of upstream Seerr stable
v3.5.2intomaster.The merge did not apply cleanly, so the Upstream Sync job would have opened this PR with conflict markers. It is resolved by hand:
auth.ts,usersettings.tsandschedule.tskeeps the fork's side. Upstream's security fixes in the same files are kept: thecanModifyUserchecks on user settings, notifications and permissions, and the current-password check that readsuserWithPassword.Dockerfilekeeps the fork's build steps and takes upstream's Node 22.23.5 image and the smaller runtime copy.package.jsontakes upstream's newer versions, keeps the fork'sjs-yaml5 and leaves out Cypress.pnpm-lock.yamlis regenerated.server/api/jellyfin.test.ts, the Plex scanner test) are dropped.Upstream moved its workflows from SHA pins to version tags plus
.github/workflows/actions.lock, which GitHub enforces at run time. Upstream's lockfile lists upstream's workflows, so it is regenerated withgh actions-lockfor the fork's 12 workflows, and the fork-only workflows are pinned the same way.gh actions-lock --verifypasses.Upstream's private vulnerability report form is dropped, since it points reporters at upstream's SECURITY.md.
Merge with a merge commit, never squash, so upstream history is kept.
Noticed, not fixed
POST /auth/setupdoes not callstartJobs(), so a fresh install runs no scheduled jobs until its first restart. This was already the case before this PR.How Has This Been Tested?
On Node 22.23.5:
pnpm typecheck,pnpm lint(0 errors),pnpm format:check,pnpm i18n:extract(no changes) andpnpm test(260 passed). CI on this PR passes the Docker test build, E2E smoke and E2E upgrade.Screenshots
None. The UI changes are upstream's.
Checklist
pnpm typecheck,pnpm lintandpnpm testpasspnpm i18n:extractwas run if UI strings changed