On Tue, Apr 28, 2015 at 12:37 PM, Rob Reynolds <r...@puppetlabs.com> wrote:

>
>
> On Mon, Apr 27, 2015 at 11:28 AM, Mark Wolek <markwo...@gmail.com> wrote:
>
>> Thanks John! It appears to open a ticket I do so on the GitHub site by
>> logging in, is this correct?
>>
>> The reason for suspecting the lack of string termination is due to what
>> we see in the Registry GUI, which is random characters and words after the
>> string, then you hit Refresh on the page, the random characters and strings
>> change.
>>
>> It does seem specific to a hyphen being in the string, but I will test
>> again to be certain.
>>
>
> Hi Mark,
>  What version of the registry module are you using? What version of the
> Puppet agent are you on? The issues you stated above were known issues that
> we believe we have corrected in newer versions of Puppet.
>


For reference, in Puppet it was PUP-1389[1] where we fixed the issue
(Puppet v3.4.3+). In the Registry module we've recently applied similar
changes[2], but mostly due to compatibility with Ruby 2.1.x.

[1] https://tickets.puppetlabs.com/browse/PUP-1389
[2] https://tickets.puppetlabs.com/browse/MODULES-1723




>
> We also vendor Ruby into the Puppet Installer for Windows (and we've done
> this almost since the first release supporting Windows), so we can usually
> rule out Ruby compatibilities in some respects, but not always with
> modules.
>
>
>
>>
>> Thanks!
>> Mark
>>
>>
>> On Monday, April 27, 2015 at 9:06:31 AM UTC-5, jcbollinger wrote:
>>>
>>>
>>>
>>> On Friday, April 24, 2015 at 1:52:17 PM UTC-5, Mark Wolek wrote:
>>>>
>>>> We believe this has something to do with puppet inserting strings that
>>>> are not null terminated, but I've had no luck at all adding termination to
>>>> the string...  have tried single and double quoting it.  \x0 \00 \000 so
>>>> many types of termination tried but nothing seems to do the trick...
>>>>
>>>>
>>>
>>> Having examined the source of the latest version of this module, I can
>>> tell you that Puppet relies on registry support from the Ruby standard
>>> library to handle the low-level details of registry manipulation.  As far
>>> as I can tell, Puppet's own code does not do any parsing or processing of
>>> registry values that would be sensitive to a hyphen character in the
>>> string.  Were you speculating about that being related to the problem, or
>>> do you in fact see different results when the array elements do not contain
>>> hyphens?
>>>
>>> I am anyway inclined to think that the problem is NOT wrong string
>>> termination, at least of the values you specify in your manifest, because
>>> Get-ItemProperty is giving you an array value in which the first element
>>> appears completely correct.  The problem could, however, be related to
>>> incorrectly specifying the size of the *array* to Windows, or failing
>>> to provide an array terminator (I'm not much of a registry tinkerer, so I'm
>>> not sure which would actually be applicable).
>>>
>>> I encourage you to file a ticket against the module.  I am uncertain
>>> whether the issue is there or in the Ruby standard library because the docs
>>> of the relevant library class suffer from the vagueness typical of Ruby
>>> docs, but the module maintainers are best positioned to evaluate that.
>>> Even if the problem turns out to be in the underlying Ruby library, it does
>>> not appear that the module's tests include any that exercise setting or
>>> retrieving values of type "array", and a ticket against the module
>>> *should* result at least in addition of such tests.
>>>
>>>
>>> John
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to puppet-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/c0503ad5-5d72-48ed-868f-522491f93e78%40googlegroups.com
>> <https://groups.google.com/d/msgid/puppet-users/c0503ad5-5d72-48ed-868f-522491f93e78%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Rob Reynolds
> Developer, Puppet Labs
>
> *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
> Oregon! Join us October 5-9.*
> *Register now to take advantage of the Early Adopter discount
> <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter>
>  *
> *--**save $349!*
>



-- 
Rob Reynolds
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Early Adopter discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter>
*
*--**save $349!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK5W1y7zE%2Bw4xUrQmb%3Do1EKx55gazrzq0KxNbmJyvYFwSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to