Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix caching of images when multiple images specified #150

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

amisevsk
Copy link
Contributor

@amisevsk amisevsk commented Nov 25, 2019

What does this PR do?

Fix bug reading list of images specified in meta.yamls, where more than one unique URL would cause caching script to fail.

What issues does this PR fix or reference?

eclipse-che/che#15293

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@amisevsk amisevsk requested a review from monaka November 25, 2019 18:48
@amisevsk
Copy link
Contributor Author

@monaka WDYT about this PR vs yours (#148)? They both work but if we ever get around to enabling CI on this repo, shellcheck will fail on the missing quotes in #148.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@amisevsk
Copy link
Contributor Author

I added a commit to resolve another issue I ran into while testing:

Images can be passed with query parameters, e.g. https://raw.githubusercontent.com/redhat-developer/codeready-workspaces/master/dependencies/che-devfile-registry/images/type-java.svg?sanitize=true

The devfile registry currently will save images with filename type-java.svg?sanitize=true, which makes them inaccessible in offline mode. Commit 3c68339 fixes that.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@monaka monaka self-requested a review December 3, 2019 03:38
@amisevsk amisevsk merged commit 54ac27e into eclipse-che:master Dec 3, 2019
amisevsk added a commit to amisevsk/che-devfile-registry that referenced this pull request Dec 4, 2019
* Fix caching of images when multiple images specified
* Remove query parameters from filename when saving devfile icon

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
amisevsk added a commit that referenced this pull request Dec 4, 2019
* Fix caching of images when multiple images specified
* Remove query parameters from filename when saving devfile icon

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants