Skip to content

Can not open file context sometimes for specific filenames in GitLab #8600

Open
@gtsiolis

Description

@gtsiolis

Bug description

Although we've removed the file context from the docs, opening a file directly from the tree in Gitpod works as expected.

However, this does not work sometimes for specific filenames in GitLab.

See relevant issue in https://gitlab.com/gitlab-org/gitlab/-/issues/354263 and relevant discussion (internal).

Steps to reproduce

For example, try the two following example URLs:

  1. https://gitpod.io/#https://gitlab.com/gitpod-io/gitlab/-/tree/master/.gitpod.yml
  2. https://gitpod.io/#https://gitlab.com/gitpod-io/gitlab/-/tree/master/yarn.lock

Both fail with the following error on the workspace start page:

GitLab ApiError on searching for possible branches for gitpod-io/gitlab/tree/master/.gitpod.yml: GitLabApiError: GitLab Request Error: The branch refname is invalid

Screenshot 2022-03-04 at 2 55 26 PM

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions