mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8110] [Issue]: Mari Personal Extension drafts that declare full_page_access cannot stay approved #7565
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ylli-selmani on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8110
Originally assigned to: @ylli-selmani on GitHub.
Summary
When Professor Mari drafts a Personal Extension through
app_data(personal_extension.createorupdate) and the draft declares thefull_page_accesscapability, the draft is saved anyway. The user can approve it in Settings, but the approval is revoked on the next server start, and Mari reports a different content hash than the one Settings approved.Personal extensions cannot have full page access (the regular create/update path refuses it with "Professor Mari extensions cannot request full page access"), but the
app_datapath builds the row itself and skips that check. No DOM access is granted: Settings and the runtime read the extension withfull_page_accessfiltered out. The bug is that the draft cannot stay approved, and nobody is told why.Expected behavior
personal_extension.create|updaterefuses aprofessor_maridraft that declaresfull_page_access, with an error Mari can act on (drop the capability and retry), and nothing is written.Actual behavior
full_page_accessand a content hash computed over it.personal_extension.getreports that hash and listsfull_page_access.professor_maridrafts and shows a different hash. Approving there works for the current run.preparePersonalExtensionTrustre-hashes the raw row (withfull_page_access), sees a mismatch, and disables the extension withapprovedHash: null. Each approval is undone at the next start.Steps to reproduce
{"action":"personal_extension.create","id":"fpa","name":"FPA","runtime":"client","capabilities":["full_page_access"],"css":"body{}","apply":true}.personal_extension.getforfpa; note itscontentHashandcapabilities.Reproduced against a temporary database on
stagingat7217a4b55: create succeeds, Mari's hashsha256:c5c8…vs Settings'sha256:c8c2…, approve → enabled, trust migration →changedRecordsDisabled: 1, enabled false, approvedHash null.Environment
stagingat7217a4b55)Logs, screenshots, or video
No logs; nothing is logged. Output of the reproduction script is summarized above.
Additional context
packages/server/src/services/mari-db/mari-db.service.ts, thepersonal_extensioncreateandupdatecases, vs.normalizePayloadinpackages/server/src/services/extensions/personal-extension-storage.service.ts.app_dataPersonal Extension write issue: editing External extensions).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: