Commit 42c6a11
fix(marketplace): install_package action returns 'sys_package not registered'
When clicking 'Install into Environment' from the Marketplace package detail
page in cloud_control, users saw:
{error: "Object 'sys_package' is not registered", code: 'object_not_found'}
Root cause: @object-ui app-shell 4.7's RecordDetailView apiHandler ignores
action.target for unknown action names and falls back to
dataSource.update(objectName, recordId, params)
which tries to PATCH sys_package with non-existent fields (environment_id,
seed_sample_data). The misleading 'not registered' message comes from the
project-scoped data route, where sys_package isn't visible.
Same upstream bug we already worked around for sys_environment's
install_application: change action type to 'script' so RecordDetailView
routes through serverActionHandler → POST /api/v1/actions/{object}/{action},
then register a server-side handler.
- sys_package.install_package: type 'api' → 'script', target rewritten to
bare 'install_package' (the action name, not a URL).
- service-cloud project-lifecycle: register
POST /actions/sys_package/:actionName dispatcher that pulls packageId
from body.recordId and environment_id/seed_sample_data from body.params,
then forwards to the existing installPackageIntoEnvironment helper.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d602851 commit 42c6a11
2 files changed
Lines changed: 59 additions & 4 deletions
File tree
- packages/services
- service-cloud/src/routes
- service-tenant/src/objects
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
618 | 667 | | |
619 | 668 | | |
620 | 669 | | |
| |||
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
190 | 198 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| |||
0 commit comments