Can't setup repo with a period in the name
ejholmes opened this issue · comments
Eric Holmes commented
Given a repo bar.com
the following is thrown when running hubot ci setup foo/bar.com
.
2012-06-24T00:57:53+00:00 app[web.1]: ERROR: Janky::Error - Failed to create hook
2012-06-24T00:57:53+00:00 app[web.1]: app janky
2012-06-24T00:57:53+00:00 app[web.1]: method POST
2012-06-24T00:57:53+00:00 app[web.1]: user_agent
2012-06-24T00:57:53+00:00 app[web.1]: params {"nwo"=>"foo/bar.com", "{}"=>nil}
2012-06-24T00:57:53+00:00 app[web.1]: session {}
2012-06-24T00:57:53+00:00 app[web.1]: referrer
2012-06-24T00:57:53+00:00 app[web.1]: remote_ip 75.101.205.73
2012-06-24T00:57:53+00:00 app[web.1]: url http://ci.foo.com/_hubot/setup?nwo=foo/bar.com
2012-06-24T00:57:53+00:00 app[web.1]: server_url #<URI::HTTP:0x00000003721818 URL:http://jenkins.foo.com/>
2012-06-24T00:57:53+00:00 app[web.1]: callback_url #<URI::HTTP:0x000000036f0b78 URL:http://ci.foo.com/_builder>
2012-06-24T00:57:53+00:00 app[web.1]: adapter Janky::JobCreator::HTTP
2012-06-24T00:57:53+00:00 app[web.1]: config "<?xml version='1.0' encoding='UTF-8'?>\n<project>\n <actions/>\n <name>ed4776884914e6b64fcedb70fc08b961</name>\n <logRotator>\n <daysToKeep>-1</daysToKeep>\n <numToKeep>-1</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n <properties>\n <hudson.model.ParametersDefinitionProperty>\n <parameterDefinitions>\n <hudson.model.StringParameterDefinition>\n <name>JANKY_SHA1</name>\n <description></description>\n <defaultValue></defaultValue>\n </hudson.model.StringParameterDefinition>\n <hudson.model.StringParameterDefinition>\n <name>JANKY_ID</name>\n <description></description>\n <defaultValue></defaultValue>\n </hudson.model.StringParameterDefinition>\n </parameterDefinitions>\n </hudson.model.ParametersDefinitionProperty>\n <com.tikal.hudson.plugins.notification.HudsonN
2012-06-24T00:57:53+00:00 app[web.1]: otificationProperty>\n <endpoints>\n <com.tikal.hudson.plugins.notification.Endpoint>\n <protocol>HTTP</protocol>\n <url>http://ci.foo.com/_builder</url>\n </com.tikal.hudson.plugins.notification.Endpoint>\n </endpoints>\n </com.tikal.hudson.plugins.notification.HudsonNotificationProperty>\n </properties>\n <scm class=\"hudson.scm.NullSCM\"/>\n <assignedNode>master</assignedNode>\n <canRoam>false</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n <triggers class=\"vector\"/>\n <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n <command>\nif [ ! -d "./.git" ]; then\n git init\n git remote add origin git@github.com:foo/bar.com\nfi\ngit fetch -q origin\ngit reset -q --hard $JANKY_SHA1\nif [ -f script/cibuild ]; then\n script/cibuild\nelse\n bun
2012-06-24T00:57:53+00:00 app[web.1]: dle install --path vendor/gems --binstubs\n bundle exec rake\nfi</command>\n </hudson.tasks.Shell>\n </builders>\n <publishers/>\n <buildWrappers/>\n</project>\n"
2012-06-24T00:57:53+00:00 app[web.1]: name "ed4776884914e6b64fcedb70fc08b961"
2012-06-24T00:57:53+00:00 app[web.1]: repo "git@github.com:foo/bar.com"
2012-06-24T00:57:53+00:00 app[web.1]: response_code "404"
2012-06-24T00:57:53+00:00 app[web.1]: response_body "{\"message\":\"Not Found\"}"
2012-06-24T00:57:53+00:00 app[web.1]:
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/github.rb:69:in `hook_create'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/repository.rb:125:in `setup_hook'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/repository.rb:117:in `setup'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/repository.rb:36:in `setup'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/hubot.rb:15:in `block in <class:Hubot>'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
2012-06-24T00:57:53+00:00 heroku[router]: Error H13 (Connection closed without response) -> POST ci.foo.com/_hubot/setup dyno=web.1 queue= wait= service= status=503 bytes=
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/auth/basic.rb:25:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `block in call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `each'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/exception.rb:44:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'2012-06-24T00:57:53+00:00 app[web.1]: ERROR: Janky::Error - Failed to create hook
2012-06-24T00:57:53+00:00 app[web.1]: app janky
2012-06-24T00:57:53+00:00 app[web.1]: method POST
2012-06-24T00:57:53+00:00 app[web.1]: user_agent
2012-06-24T00:57:53+00:00 app[web.1]: params {"nwo"=>"foo/bar.com", "{}"=>nil}
2012-06-24T00:57:53+00:00 app[web.1]: session {}
2012-06-24T00:57:53+00:00 app[web.1]: referrer
2012-06-24T00:57:53+00:00 app[web.1]: remote_ip 75.101.205.73
2012-06-24T00:57:53+00:00 app[web.1]: url http://ci.foo.com/_hubot/setup?nwo=foo/bar.com
2012-06-24T00:57:53+00:00 app[web.1]: server_url #<URI::HTTP:0x00000003721818 URL:http://jenkins.foo.com/>
2012-06-24T00:57:53+00:00 app[web.1]: callback_url #<URI::HTTP:0x000000036f0b78 URL:http://ci.foo.com/_builder>
2012-06-24T00:57:53+00:00 app[web.1]: adapter Janky::JobCreator::HTTP
2012-06-24T00:57:53+00:00 app[web.1]: config "<?xml version='1.0' encoding='UTF-8'?>\n<project>\n <actions/>\n <name>ed4776884914e6b64fcedb70fc08b961</name>\n <logRotator>\n <daysToKeep>-1</daysToKeep>\n <numToKeep>-1</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n <properties>\n <hudson.model.ParametersDefinitionProperty>\n <parameterDefinitions>\n <hudson.model.StringParameterDefinition>\n <name>JANKY_SHA1</name>\n <description></description>\n <defaultValue></defaultValue>\n </hudson.model.StringParameterDefinition>\n <hudson.model.StringParameterDefinition>\n <name>JANKY_ID</name>\n <description></description>\n <defaultValue></defaultValue>\n </hudson.model.StringParameterDefinition>\n </parameterDefinitions>\n </hudson.model.ParametersDefinitionProperty>\n <com.tikal.hudson.plugins.notification.HudsonN
2012-06-24T00:57:53+00:00 app[web.1]: otificationProperty>\n <endpoints>\n <com.tikal.hudson.plugins.notification.Endpoint>\n <protocol>HTTP</protocol>\n <url>http://ci.foo.com/_builder</url>\n </com.tikal.hudson.plugins.notification.Endpoint>\n </endpoints>\n </com.tikal.hudson.plugins.notification.HudsonNotificationProperty>\n </properties>\n <scm class=\"hudson.scm.NullSCM\"/>\n <assignedNode>master</assignedNode>\n <canRoam>false</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\n <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\n <triggers class=\"vector\"/>\n <concurrentBuild>false</concurrentBuild>\n <builders>\n <hudson.tasks.Shell>\n <command>\nif [ ! -d "./.git" ]; then\n git init\n git remote add origin git@github.com:foo/bar.com\nfi\ngit fetch -q origin\ngit reset -q --hard $JANKY_SHA1\nif [ -f script/cibuild ]; then\n script/cibuild\nelse\n bun
2012-06-24T00:57:53+00:00 app[web.1]: dle install --path vendor/gems --binstubs\n bundle exec rake\nfi</command>\n </hudson.tasks.Shell>\n </builders>\n <publishers/>\n <buildWrappers/>\n</project>\n"
2012-06-24T00:57:53+00:00 app[web.1]: name "ed4776884914e6b64fcedb70fc08b961"
2012-06-24T00:57:53+00:00 app[web.1]: repo "git@github.com:foo/bar.com"
2012-06-24T00:57:53+00:00 app[web.1]: response_code "404"
2012-06-24T00:57:53+00:00 app[web.1]: response_body "{\"message\":\"Not Found\"}"
2012-06-24T00:57:53+00:00 app[web.1]:
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/github.rb:69:in `hook_create'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/repository.rb:125:in `setup_hook'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/repository.rb:117:in `setup'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/repository.rb:36:in `setup'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/hubot.rb:15:in `block in <class:Hubot>'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
2012-06-24T00:57:53+00:00 heroku[router]: Error H13 (Connection closed without response) -> POST ci.foo.com/_hubot/setup dyno=web.1 queue= wait= service= status=503 bytes=
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/auth/basic.rb:25:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `block in call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `each'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/janky-1f9744fc5d35/lib/janky/exception.rb:44:in `call'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2012-06-24T00:57:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
Tom Bell commented
Does the repo bar.com
exist for the user/org foo
, because it cannot find it.
Eric Holmes commented
It does exist, renaming to bardotcom
fixes the issue.
Simon Rozet commented
Eric Holmes commented
hmm, I looked into this a bit more and I'm really not sure how janky is setting that up properly for you.
The offending line of code for me is here:
def github_name
uri[/.*[\/:]([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_]+)/] && $2
end
The regex isn't even checking for periods in the repo name. The following patch fixes the issue for me:
diff --git a/lib/janky/repository.rb b/lib/janky/repository.rb
index 4bdcb5f..44e3d08 100644
--- a/lib/janky/repository.rb
+++ b/lib/janky/repository.rb
@@ -93,7 +93,7 @@ module Janky
#
# Returns the name as a String.
def github_name
- uri[/.*[\/:]([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_]+)/] && $2
+ uri[/.*[\/:]([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)/] && $2
end
# Fully qualified GitHub name for this repository.