Skip to content

Missing Trailing Slash on Repository Environments Endpoint #65

@Humni

Description

@Humni

Version: 4.0.0

The package is installed using the standard config. Requests URIs are being built without a trailing slash for some endpoints. For instance:

// Fetched using `dd(self::prepareUri($uri, $params));` at AbstractAPI.php:87 
/2.0/repositories/{workspace}/{repository}/environments

These result in an exception: Bitbucket\Exception\RuntimeException: Resource not found: There is no API hosted at this URL.

The URI should actually be:

/2.0/repositories/{workspace}/{repository}/environments/

Unfortunately, this is only an issue for some endpoints as some exclude the trailing slash, so a blanket addition of a trailing slash would break other endpoints such as:

/2.0/workspaces/{workspace}/pipelines-config/variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions