feat(libSceNpCppWebApi): fail the InGameCatalog and TitleCloudStorage transactions signed out #10832

Closed
EagleBearerYS wants to merge 1 commit from upstream-pr/10832 into main
EagleBearerYS commented 2026-10-25 03:33:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-25T03:33:27Z.


What

Gives five libSceNpCppWebApi request entry points the library's offline answer instead of throwing:

  • TransactionBase<…>::start and Transaction<…>::getResponse of the InGameCatalog::V5 Vector<IntrusivePtr<Container>> transaction;
  • the same two of the TitleCloudStorage::V1 GetMultiDataStatusesResponseBody transaction;
  • TitleCloudStorage::V1::DataApi::getMultiDataStatusesByUser.

Each returns SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN and leaves the response untouched, as every other start, getResponse and API call in the library already does (DataApi::downloadData and ContainerApi::getContainer among them). The debt entry for the #8143 stubs now names them.

The eight IntrusivePtr destructors of the same types are left alone. Their only throwing path is the last release of a pointer without a deleter, which the existing IntrusivePtr debt entry covers: it needs the object's destructor and the LibContext allocator.

Related: #9015 and #9612 edit the same Export.cpp; this merges cleanly with both.

Tested

  • GitHub's runners (run 40154538998): guest_np_cpp_web_api_signed_out passes 10 of 10 on Linux and on Windows, 0 skipped, and fails with main's implementation. The libc and libkernel suites pass on both.
  • Red/green (Linux, Ubuntu 24.04, gcc 13.3, CI's configure flags): each reverted function alone makes the test abort (5 of 5 red), and it passes with the change.
  • Full ctest on Linux: 2,196 tests, 2,101 pass and 90 skipped; the 5 failures are IPv6 sockets on a VM without IPv6.

No title tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5001503795 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10832). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-25T03:33:27Z. --- ### What Gives five libSceNpCppWebApi request entry points the library's offline answer instead of throwing: - `TransactionBase<…>::start` and `Transaction<…>::getResponse` of the InGameCatalog::V5 `Vector<IntrusivePtr<Container>>` transaction; - the same two of the TitleCloudStorage::V1 `GetMultiDataStatusesResponseBody` transaction; - `TitleCloudStorage::V1::DataApi::getMultiDataStatusesByUser`. Each returns `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN` and leaves the response untouched, as every other `start`, `getResponse` and API call in the library already does (`DataApi::downloadData` and `ContainerApi::getContainer` among them). The debt entry for the #8143 stubs now names them. The eight `IntrusivePtr` destructors of the same types are left alone. Their only throwing path is the last release of a pointer without a deleter, which the existing `IntrusivePtr` debt entry covers: it needs the object's destructor and the `LibContext` allocator. Related: #9015 and #9612 edit the same `Export.cpp`; this merges cleanly with both. ### Tested - **GitHub's runners** ([run 40154538998](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40154538998)): `guest_np_cpp_web_api_signed_out` passes 10 of 10 on Linux and on Windows, 0 skipped, and fails with main's implementation. The libc and libkernel suites pass on both. - **Red/green** (Linux, Ubuntu 24.04, gcc 13.3, CI's configure flags): each reverted function alone makes the test abort (5 of 5 red), and it passes with the change. - Full ctest on Linux: 2,196 tests, 2,101 pass and 90 skipped; the 5 failures are IPv6 sockets on a VM without IPv6. No title tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 03:36:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T03:36:48Z.

Review: COMMENTED


I reviewed the exact head da301dc4e7730997ccfe4133f97fd4ca2bad5f08, including the five offline error returns, the test that checks getResponse leaves its output untouched, and the debt update. The return behavior matches the neighboring offline request entry points, and the diff stays within the three claimed functions plus focused coverage. I did not find a blocking code issue.

The PR description reports Linux and Windows red/green runs, but the linked Actions run 40154538998 currently returns 404, and the checks attached to this exact head show the product Linux/Windows jobs skipped (policy checks pass). Could you provide an accessible test-run link or rerun the focused test on this head? I have not independently run the product test locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5641365380 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10832#pullrequestreview-5641365380). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T03:36:48Z. **Review:** COMMENTED --- I reviewed the exact head `da301dc4e7730997ccfe4133f97fd4ca2bad5f08`, including the five offline error returns, the test that checks `getResponse` leaves its output untouched, and the debt update. The return behavior matches the neighboring offline request entry points, and the diff stays within the three claimed functions plus focused coverage. I did not find a blocking code issue. The PR description reports Linux and Windows red/green runs, but the linked Actions run `40154538998` currently returns 404, and the checks attached to this exact head show the product Linux/Windows jobs skipped (policy checks pass). Could you provide an accessible test-run link or rerun the focused test on this head? I have not independently run the product test locally.
MarcZX10 commented 2026-10-25 04:08:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T04:08:29Z.

Review: CHANGES_REQUESTED


Correction: my earlier blocking comment misread the mangled symbol as a three-parameter C++ prototype. In this library, NID-discovered C++ exports are declared using their literal mangled names with empty parameter lists, including neighboring API entry points such as getContainer and getFriends. The implementation ignores all incoming registers and returns the signed-out error without accessing or mutating the response, so the zero-argument local call is consistent with the existing export/test pattern and I have not established an ABI defect. The separate concern about hosted run link visibility remains only a reporting limitation, not a code blocker; product jobs on this head are skipped by policy.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5641442967 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10832#pullrequestreview-5641442967). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T04:08:29Z. **Review:** CHANGES_REQUESTED --- Correction: my earlier blocking comment misread the mangled symbol as a three-parameter C++ prototype. In this library, NID-discovered C++ exports are declared using their literal mangled names with empty parameter lists, including neighboring API entry points such as getContainer and getFriends. The implementation ignores all incoming registers and returns the signed-out error without accessing or mutating the response, so the zero-argument local call is consistent with the existing export/test pattern and I have not established an ABI defect. The separate concern about hosted run link visibility remains only a reporting limitation, not a code blocker; product jobs on this head are skipped by policy.
MarcZX10 commented 2026-10-25 04:28:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T04:28:41Z.

Review: APPROVED


Reviewed exact head da301dc4e7 and corrected my earlier ABI concern: the literal mangled symbol is declared with an empty C++ parameter list, matching neighboring NID-discovered exports such as getContainer and getFriends. This implementation does not read arguments or touch the response object; it returns the same signed-out result used by adjacent request entry points. The focused regression covers all five entry points and sentinel-preservation for transaction response objects; the direct API call is consistent with the repository pattern. Local diff-check and conventions pass. Hosted eligibility, intake, conventions and labels pass; product Linux/Windows jobs are skipped. The linked older hosted test run is not accessible to me, so those red/green results remain author-reported rather than independently verified.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5641492165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10832#pullrequestreview-5641492165). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T04:28:41Z. **Review:** APPROVED --- Reviewed exact head da301dc4e7730997ccfe4133f97fd4ca2bad5f08 and corrected my earlier ABI concern: the literal mangled symbol is declared with an empty C++ parameter list, matching neighboring NID-discovered exports such as getContainer and getFriends. This implementation does not read arguments or touch the response object; it returns the same signed-out result used by adjacent request entry points. The focused regression covers all five entry points and sentinel-preservation for transaction response objects; the direct API call is consistent with the repository pattern. Local diff-check and conventions pass. Hosted eligibility, intake, conventions and labels pass; product Linux/Windows jobs are skipped. The linked older hosted test run is not accessible to me, so those red/green results remain author-reported rather than independently verified.
MarcZX10 commented 2026-10-25 04:58:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T04:58:37Z.

Review: APPROVED


Reviewed head da301dc4e7730997ccfe4133f97fd4ca2bad5f08. The five new request-entry paths consistently return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; the transaction response test verifies its buffer remains unchanged. The linked successful Linux/Windows verification run used the immediate parent of this head, and I confirmed the production, test, and debt files are identical between that tested commit and this PR head (the difference is only temporary verification workflow scaffolding). git diff --check is clean. No blocking issue found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5641632404 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10832#pullrequestreview-5641632404). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T04:58:37Z. **Review:** APPROVED --- Reviewed head `da301dc4e7730997ccfe4133f97fd4ca2bad5f08`. The five new request-entry paths consistently return `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`; the transaction response test verifies its buffer remains unchanged. The linked successful Linux/Windows verification run used the immediate parent of this head, and I confirmed the production, test, and debt files are identical between that tested commit and this PR head (the difference is only temporary verification workflow scaffolding). `git diff --check` is clean. No blocking issue found.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10832
No description provided.