Skip to content

Legacy node actions (org.jahia.bin.Action parity) declared in JavaScript #694

Description

@romain-pm

Part of EPIC #554. Implemented — under review in #687.

registerNodeLegacyAction({ name, requiredMethods?, requireAuthenticatedUser?, requiredPermission?, requiredWorkspace? }, handler) bridges to org.jahia.bin.Action OSGi services on <nodeUrl>.<name>.do URLs — Java-module parity for form POSTs and existing .do integrations. CSRF whitelisting stays the module author's responsibility (ADR-0004, documented recipe exercised by the test module). Async handlers supported (#688). Naming rationale (why "legacy", why plain "action" went to #588): ADR-0007.

Live-verified on Jahia 8.2 (GET/POST incl. CSRF whitelist, auth default true, redirects; JSON body requires Accept: application/json — documented). Docs: guide 4-legacy-node-actions. Tests: bridge unit tests + actionTest.cy.ts incl. redeploy resilience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions