Description of problem: When creating scalable application, with blank source code form, met "Invalid initial git URL" error. INT(devenv_3250) does not have this issue. Version-Release number of selected component (if applicable): devenv_3253 How reproducible: always Steps to Reproduce: 1.Login to openshift console 2.Try to create scalable application with empty source code form 3. Actual results: Met "Invalid initial git URL" error.Log is as following: 2013-05-21 05:30:00.917 [DEBUG] OpenShift API (54.4ms) post https://localhost:443/broker/rest/domains/hsdfgs/applications.json [ code: 422 ] (pid:2691) 2013-05-21 05:30:00.917 [DEBUG] Server error: :initial_git_url #216: Invalid initial git URL (pid:2691) 2013-05-21 05:30:00.918 [DEBUG] Found errors on the response object: {:initial_git_url=>["Invalid initial git URL"]} (pid:2691) 2013-05-21 05:30:00.918 [DEBUG] #<ActiveResource::Errors:0x00000004bf1c98 @base=#<Application:0x000000047fdd30 @as=#<WebUser::Mock:0x000000049230c0 @rhlogin="shdf", @errors=#<ActiveModel::Errors:0x00000004922828 @base=#<WebUser::Mock:0x000000049230c0 ...>, @messages={}>, @ticket="c2hkZg==", @streamline_type=:full, @api_ticket="0882288dd8936ffbce8c7a5ae5bb23fec66bc60f3fd8e9df9ce4050501351ef0">, @attributes={"cartridges"=>["php-5.3"], "name"=>"php5467", "initial_git_url"=>"", "gear_profile"=>"small", "scale"=>"true"}, @prefix_options={:domain_id=>"hsdfgs"}, @persisted=false, @errors=#<ActiveResource::Errors:0x00000004bf1c98 ...>, @changed_attributes={"name"=>nil}, @remote_errors=#<ActiveResource::ResourceInvalid: Failed. Response code = 422. Response message = .>, @validation_context=nil, @connection=#<RestApi::UserAwareConnection:0x00000004bf1888 @password=nil, @user=nil, @uri_parser=#<URI::Parser:0x00000004bf1860>, @site=#<URI::HTTPS:0x0000000372e6d0 URL:https://localhost/broker/rest>, @format=#<RestApi::OpenshiftJsonFormat:0x00000003a50e30 @root_attrs=[]>, @connection=#<ActiveResource::PersistentConnection:0x00000004ed7430 @password=nil, @user=nil, @uri_parser=#<URI::Parser:0x00000004ed72c8>, @site=#<URI::HTTPS:0x0000000372e6d0 URL:https://localhost/broker/rest>, @format=#<RestApi::OpenshiftJsonFormat:0x00000003a50e30 @root_attrs=[]>, @idle_timeout=4, @read_timeout=180, @open_timeout=3, @connection_name="rest_api", @default_header={}, @http=#<Net::HTTP::Persistent:0x000000050c6d18 @name="rest_api", @debug_output=nil, @proxy_uri=nil, @headers={}, @override_headers={}, @http_versions={"localhost:443"=>"1.1"}, @keep_alive=30, @open_timeout=3, @read_timeout=180, @idle_timeout=4, @socket_options=[[6, 1, 1]], @generation_key=:net_http_persistent_rest_api_generations, @ssl_generation_key=:net_http_persistent_rest_api_ssl_generations, @request_key=:net_http_persistent_rest_api_requests, @timeout_key=:net_http_persistent_rest_api_timeouts, @certificate=nil, @ca_file=nil, @private_key=nil, @ssl_version=nil, @verify_callback=nil, @verify_mode=0, @cert_store=nil, @generation=0, @ssl_generation=1, @reuse_ssl_sessions=true, @retry_change_requests=false>>, @as=#<WebUser::Mock:0x000000049230c0 @rhlogin="shdf", @errors=#<ActiveModel::Errors:0x00000004922828 @base=#<WebUser::Mock:0x000000049230c0 ...>, @messages={}>, @ticket="c2hkZg==", @streamline_type=:full, @api_ticket="0882288dd8936ffbce8c7a5ae5bb23fec66bc60f3fd8e9df9ce4050501351ef0">, @default_header={}>>, @messages={:initial_git_url=>["Invalid initial git URL"], :domain_id=>[], :scale=>[]}, @codes={:initial_git_url=>[216]}> (pid:2691) 2013-05-21 05:30:00.939 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.9.3/app/views/applications/_name.html.haml (0.4ms) (pid:2691) 2013-05-21 05:30:00.957 [INFO ] Rendered application_types/_application_type_notifications.html.haml (0.1ms) (pid:2691) 2013-05-21 05:30:00.963 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.9.3/app/views/application_types/show.html.haml within layouts/console (43.7ms) (pid:2691) 2013-05-21 05:30:00.970 [INFO ] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.9.3/app/views/layouts/_head.html.haml (1.5ms) (pid:2691) 2013-05-21 05:30:00.975 [INFO ] Rendered layouts/console/_stylesheets.html.haml (2.0ms) (pid:2691) 2013-05-21 05:30:00.983 [INFO ] Rendered layouts/console/_header.html.haml (7.6ms) (pid:2691) 2013-05-21 05:30:00.988 [INFO ] Rendered layouts/_footer.html.haml (3.3ms) (pid:2691) 2013-05-21 05:30:00.989 [INFO ] Rendered layouts/console/_javascripts.html.haml (0.5ms) (pid:2691) 2013-05-21 05:30:00.990 [INFO ] Completed 200 OK in 240ms (Views: 71.4ms | OpenShift API: 142.6ms) (pid:2691) Expected results: Should be able to create scalable applicaton without using initial git url. Additional info:
This issue also happens when creating application using community cartridge url.
Problem in the rest api
Fixed as part of another bug.
Tested on devenv_3277, the scalable app can be created successfully with blank initial git url, so verify this bug, thanks.