Che: Bad error message if invalid URL given to factory

Created on 19 Aug 2019  路  4Comments  路  Source: eclipse/che

Describe the bug


The "devfile is out of date" message appears in too many user error scenarios, such as if the URL is invalid or inaccessible. There should be a better error message.
image

Che version


7.0.0-rc-5.0-SNAPSHOT

Steps to reproduce

  1. Use the factory endpoint to create a new workspace.
  2. Provide an invalid URL in the query, eg:
    http://che-default.<domain>/f?url=asdf
  3. The error is as above.

Expected behavior

The error message should be more informative. Che should handle common user errors such as:

Runtime

  • [ ] kubernetes (include output of kubectl version)
  • [x] Openshift (include output of oc version)
  • [ ] minikube (include output of minikube version and kubectl version)
  • [ ] minishift (include output of minishift version and oc version)
  • [ ] docker-desktop + K8S (include output of docker version and kubectl version)
  • [ ] other: (please specify)
[ /tim/programs/codewind ] 29 $ oc version
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth

Server https://c100-e.us-east.containers.cloud.ibm.com:30387
openshift v3.11.129
kubernetes v1.11.0+d4cacc0
good first issue kinenhancement lifecyclstale statuopen-for-dev

Most helpful comment

@tetchel adn @ibuziuk I can take a look at it.

All 4 comments

@tetchel any plans to provide a PR for that ;-) ?

@tetchel adn @ibuziuk I can take a look at it.

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

this was not safe to close! :(

Was this page helpful?
0 / 5 - 0 ratings