dots in charm names (shelr.tv)
William Reade
william.reade at canonical.com
Tue Mar 26 11:42:29 UTC 2013
On Tue, 2013-03-26 at 12:15 +0100, Abel Deuring wrote:
> Looking at charmworld's log files from ingesting charm data, I noticed
> that one charm is not properly processed: shelr.tv.
>
> The reason is that charmworld stores the data in MongoDB, that the charm
> name is used in keys of records in the DB and that MongoDB rejects keys
> with dots.
>
> juju-core also uses MongoDB, so I assume that a similar problem could
> arise there too. My question: How are you handling this? Is shelr.tv
> simply rejected, are you escaping the dot ... or the name not used at all?
That's not a valid charm name [0]; it should just be rejected.
[0] charm/url.go: var validName =
regexp.MustCompile("^[a-z][a-z0-9]*(-[a-z0-9]*[a-z][a-z0-9]*)*$")
Cheers
William
More information about the Juju
mailing list