Skip to content

Problem adding attribute options that start with a number via REST Api #5715

Closed
@johnhird

Description

@johnhird

Steps to reproduce

  1. Via REST API make a POST request to: /V1/products/attributes/{attributeCode}/options
  2. send up new data with label and value that begins with a number e.g. "123 test"

Expected result

  1. new attribute option should be added the same as when label and value begin with a letter.
  2. API result is "StatusCode: OK, Content-Type: application/json; charset=utf-8, Content-Length: 4)"

Actual result

  1. response from API call is: {"message":"Cannot save attribute %1","parameters":["size"]}

This only happens when the attribute options starts with a number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions