Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10847 (closed defect: fixed)

Opened 11 months ago

Last modified 9 months ago

./script/plugin fails for unverified SSL certificates

Reported by: jon@blankpad.net Assigned to: jon@blankpad.net
Priority: normal Milestone: 2.x
Component: Railties Version: edge
Severity: major Keywords:
Cc:

Description

We're using an SSL secured SVN repository using a self-signed certificate to track our code internally, which leads to the following:

> script/plugin install https://our.repository/plugins/plugin_name Plugin not found https://our.repository/plugins/plugin_name?

This appears to be caused by open-uri throwing a "certificate verify failed" error. I'm going to try and patch the script so that it can handle that, preferably by prompting for confirmation that you want to use an unverified certificate.

Attachments

add_export_option_to_script_plugin.diff (0.9 kB) - added by jon@blankpad.net on 01/18/08 15:33:26.
Patch to add a -e (export) option to script/plugin install

Change History

01/18/08 15:33:26 changed by jon@blankpad.net

  • attachment add_export_option_to_script_plugin.diff added.

Patch to add a -e (export) option to script/plugin install

01/18/08 15:34:48 changed by jon@blankpad.net

  • status changed from new to assigned.

This isn't quite a solution, but it's good enough for our purposes.

Using ./script/plugin install -e https://my.plugin/ will use svn export, instead of the built in HTTP copier from the script.

01/18/08 16:24:22 changed by djanowski

Useful, +1

02/06/08 21:25:19 changed by FooBarWidget

+1 here

02/12/08 15:34:53 changed by lifofifo

  • keywords set to verified.

+1

02/15/08 23:12:17 changed by nzkoz

  • keywords deleted.

The title of this ticket and the patch attached don't seem to be related to one another?

02/20/08 10:53:47 changed by jon@blankpad.net

Using the export option invokes the svn command, which can happily handle self-signed SSL certs, unlike the HTTP download class that is used for the other options - so it at least provides a workaround.

02/21/08 22:44:04 changed by nzkoz

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [8921]) Patch to add a -e (export) option to script/plugin install. Closes #10847 [jon@blankpad.net]