Skip to content

GraphQl. Retrieve customer's shopping cart without an authorization token #28040

Closed
@atwixfirster

Description

@atwixfirster

Preconditions (*)

  1. Sample data
  2. Login as Veronica Costello
  3. Add any product(s) into a shopping cart

Steps to reproduce (*)

  1. Copy PHPSESSID value from a browser window

27373-01

  1. Set PHPSESSID in a header

27373-02

  1. Run the next GraphQL query to retrieve a customer's cart
{
  cart(cart_id: "kSjlU0dTeaH9CUuaRGFSUTOejwTN9ZLn") {
    id
    items {
      id
      quantity
      product {
        sku
      }
    }
  }
}

Expected result (*)

  1. GraphQl should use an Authorization token (Bearer) ONLY to retrieve a customer's cart.

27373-04

Actual result (*)

  1. Guest sees products which customer has been added into shopping cart.

27373-03

Metadata

Metadata

Labels

Area: APIsComponent: CustomerComponent: CustomerGraphQlIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S0A problem that is blocking the ability to work. An immediate fix is needed.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions