Bug #14899
Bad YAML encoding on the server-side can cause exceptions on the forge when publishing
| Status: | Closed | Start date: | 06/08/2012 | |
|---|---|---|---|---|
| Priority: | Urgent | Due date: | ||
| Assignee: | % Done: | 0% | ||
| Category: | web | Spent time: | - | |
| Target version: | - | |||
| Keywords: | release version | Affected URL: | ||
| Branch: | ||||
Description
The module puppetlabs/keystone is returning an exception. This seems to be a missing version entry on the release in question in the database, but we’d need to confirm.
The link that throws the error is:
http://forge.puppetlabs.com/puppetlabs/keystone/0.1.0
This might be fix-able temporarily, but there is obviously a reason for this to happen in the first place as ‘version’ should be validated before a release is created.
History
#1
Updated by Ken Barber about 1 year ago
- Assignee set to Ken Barber
#2
Updated by Ken Barber about 1 year ago
This is actually a YAML parsing error in Ruby. The content in the metadata.json file has content that when Ruby converts it to YAML on the server side, it is not parseable going forward.
This actually works fine in Ruby 1.9.x (including Jruby in 1.9 mode, not 1.8 mode) and using Puppet’s Zaml apparently. For now, the fix is to actually change the description fields in the content itself, this creates parse-able YAML on the server side and for this particular small issue – fixes the issue temporarily:
https://github.com/kbarber/puppetlabs-keystone/commit/a44cc650f12ead0762a9ef55baed09bcad84286f
#3
Updated by Branan Purvine-Riley about 1 year ago
Ken’s workaround worked perfectly, and keystone (and all the things that depend on it) is now on the forge.
#4
Updated by Ken Barber about 1 year ago
- Subject changed from Release for puppetlabs/keystone is returning an exception to Bad YAML encoding on the server-side can cause exceptions on the forge when publishing
#5
Updated by Ken Barber 7 months ago
- Status changed from Accepted to Closed
This is fixed with the vulcan release, since we use Ruby 1.9 now.