Bug #4841

All code paths dealing with Plists should handle binary format

Added by Paul Berry over 2 years ago. Updated over 1 year ago.

Status:AcceptedStart date:09/24/2010
Priority:NormalDue date:
Assignee:Gary Larizza% Done:

0%

Category:OSX
Target version:-
Affected Puppet version: Branch:
Keywords:

Description

There are many places in Puppet code that process plist files using facter/util/plist. That code only understands plists formatted in XML.

In OSX 10.2 Apple introduced a new binary format for plists, which has recently started to see widespread usage. The code in facter/util/plist silently fails when trying to parse binary-formatted plists, so this leads to subtle bugs, such as #4025. I made a small change to fix #4025 in 2.6.x.

But there could be other bugs lurking. We should refactor all the Puppet code that accesses plists (and possibly also all the Facter code that accesses plists) so that it can handle binary format plists.

History

#1 Updated by James Turnbull over 2 years ago

  • Target version deleted (52)

#2 Updated by Gary Larizza over 1 year ago

  • Assignee set to Gary Larizza

I’ve looked at CFPropertyList https://github.com/ckruse/CFPropertyList and and it looks like it’s a great solution to this problem. Working out how we can make this happen.

Also available in: Atom PDF