Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-3600

Set urlRewriteSupported to false in editors redirect endpoints

XMLWordPrintable

    • False
    • None
    • False

      There are a few predefined endpoints in every Dev Spaces workspace that are used when there is no devfile (or when a process is listening to a port that doesn't match any devfile endpoint). The format of URLs of these predefined endpoints is:

      http://<devspaces-hostname>/<devworkspace-id>/<component-name>/<default-port>/
      

      But a developer application, listening for example on http://localhost:8080/, may not work as expected if users connect using an external URL with an extra path (such as the one with the above format).

      In other words, not every web application supports URL rewrite and we should change predefined endpoints to avoid it and be exposed on URLs with the following format:

      http://<devworkspace-id>-<number>.apps.<openshift-base-hostname>/
      

      That can be achieved setting urlRewriteSupported: false for redirect endpoints in editors definitions (see vs-code, theia, intellij, pycharm).

            vsvydenk Valerii Svydenko
            mloriedo Mario Loriedo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: