Coder Social home page Coder Social logo

Config plist validation about imagr HOT 4 CLOSED

imagr avatar imagr commented on July 18, 2024
Config plist validation

from imagr.

Comments (4)

clburlison avatar clburlison commented on July 18, 2024

I'm not sure if Github sends a message when a previous issue is edited. I've updated the original to update the status of this issue as validation is now present.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

Yes, you can have more than one password key, but only the bottom most one will be used. Let's say we have loaded the configuration plist into the variable, config. What we're effectively doing is setting config['password'] and then setting config['password'] again. I set the password twice in my config plist and then ran this bit of python:

import FoundationPlist

config = FoundationPlist.readPlist(plist)

for key in config:
    print key

And I got

password
workflows

from imagr.

clburlison avatar clburlison commented on July 18, 2024

Alright, that doesn't sound like a show stopper to me. Unless someone else can find something else that breaks the validation process I believe the new script solves this issue.

from imagr.

gregneagle avatar gregneagle commented on July 18, 2024

"Yes, you can have more than one password key, but only the bottom most one will be used."

It's probably safer to say that which one will be actually used is undefined. It appears that the CoreFoundation plist parser currently behaves as you've described (processing keys and values in order, so that a later key with the same name as a previous key would cause the key's value to be replaced), but no-one should count on this behavior.

from imagr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.