Problem/Motivation

We have a category in our DAM called "Category with /slash" and since it has been created we see errors for requests to /acquia-dam/categories?category=Category%20with%20/slash while browsing the DAM in our site's media library that look like:

Client error: `GET
GET https://api.widencollective.com/v2/categories/Category%20with%20/slash` resulted
in a `400 Bad Request` response:
{
"error": true,
"response_code": 400,
"error_message": "Invalid category path: Category with /slash", "stack_tr (truncated...)
}

All the other categories are working fine, so I suspect the handling of the slash in the category name is the culprit. Quoting Widen API documentation:

“Slashes in category names must be escaped with a preceeding backslash (%2F).”

Issue fork acquia_dam-3611376

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Status: Active » Needs review

Requesting review.

rajeshreeputra’s picture

Status: Needs review » Fixed

MR merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • rajeshreeputra committed 56e155fd on 1.1.x-webhook
    Resolve #3611376 "Fix: DAM category with /slash throws errors."
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.