Project

General

Profile

Actions

Bug #10190

closed

When searching for a docker image an error is showed when / is typed

Added by Bryan Kearney about 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1206160
Description of problem:
When searching for a docker image and typing the / character an error is showed.

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-7-20150324.0

How reproducible:
Aways

Steps to Reproduce:
1. Pull or create a docker image with an slash on name for example <part1>/<part2>
2. Go to New Container wizard, select the Docker compute resource which have that image
3. Click on docker hub tab and search the that image

Actual results:
An error is shown even thought the search string have a valid value

Expected results:
No error is shown

Additional info:

> /var/log/messages <
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="GET /v1.15/images/omaciel/json"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="+job image_inspect(omaciel)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: No such image: omaciel
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="-job image_inspect(omaciel) = ERR (1)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="Handler for GET /images/{name:.*}/json returned error: No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="HTTP Error: statusCode=404 No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="GET /v1.15/images/omaciel/json"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="+job image_inspect(omaciel)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: No such image: omaciel
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="-job image_inspect(omaciel) = ERR (1)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="Handler for GET /images/{name:.*}/json returned error: No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="HTTP Error: statusCode=404 No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="GET /v1.15/images/omaciel/json"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="+job image_inspect(omaciel)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: No such image: omaciel
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="-job image_inspect(omaciel) = ERR (1)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="Handler for GET /images/{name:.*}/json returned error: No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="HTTP Error: statusCode=404 No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="GET /v1.15/images/omaciel/json"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="+job image_inspect(omaciel)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: No such image: omaciel
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="info" msg="-job image_inspect(omaciel) = ERR (1)"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="Handler for GET /images/{name:.*}/json returned error: No such image: omaciel"
Mar 26 09:07:31 ibm-x3250m4-06 docker: time="2015-03-26T09:07:31-04:00" level="error" msg="HTTP Error: statusCode=404 No such image: omaciel" > /var/log/foreman/production.log <
2015-03-26 09:07:31 [I] Processing by ImageSearchController#auto_complete_repository_name as /*
2015-03-26 09:07:31 [I] Parameters: {"search"=>"omaciel", "registry_id"=>"", "id"=>"2"}
2015-03-26 09:07:31 [I] String does not start with the prefix 'encrypted-', so ForemanDocker::Docker docker was not decrypted
2015-03-26 09:07:31 [I] Rendered text template (0.0ms)
2015-03-26 09:07:31 [I] Completed 200 OK in 33ms (Views: 0.9ms | ActiveRecord: 3.0ms)
2015-03-26 09:07:32 [I] Processing by ImageSearchController#auto_complete_repository_name as */

2015-03-26 09:07:32 [I] Parameters: {"search"=>"omaciel/", "registry_id"=>"", "id"=>"2"}
2015-03-26 09:07:32 [I] String does not start with the prefix 'encrypted-', so ForemanDocker::Docker docker was not decrypted
2015-03-26 09:07:32 [I] Completed 500 Internal Server Error in 166ms (Views: 0.1ms | ActiveRecord: 2.9ms)
Actions #1

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/120 added
  • Pull request deleted ()
Actions #2

Updated by Daniel Lobato Garcia almost 9 years ago

Og, is the '/' intended to be at the end of the image, or would it be ok to just search for images without "/"?

Actions #3

Updated by Sebastian Gräßl almost 7 years ago

  • Status changed from Ready For Testing to Closed

Closing since this has been fixed.

Actions

Also available in: Atom PDF