GithubHelp home page GithubHelp logo

Comments (4)

jlkaiser avatar jlkaiser commented on July 17, 2024

Okay, so I can't make it fail with special characters.

I can make it fail with an attribute that has the entire id_rsa key in it, but a backend install only sort of fails.

It pops you to a screen like this:

backend-0-0

Click okay and then the node installs and the ssh key is where it's supposed to be.

If you put an xml entity in as an attribute, like this:

stack set attr attr=testattr value='ipaddr = &hostaddr;'

You'll get:

ipaddr = &hostaddr;

not

ipaddr = 192.168.55.55

because the parser only parses the xml the first time around.

So this is more like under the heading of: "Don't do that." The question is whether or not it's worth trying to catch a "don't do that."

from stacki.

jlkaiser avatar jlkaiser commented on July 17, 2024

I take it back. I made it fail about three months after I said I couldn't make it fail. Put a python dict in as an attribute, it let's you. Then use the attribute, it will barf.

Thanks,

Joe

from stacki.

gregorybruno avatar gregorybruno commented on July 17, 2024

Try calling saxutils.escape(string) and see if that fixes it.

from stacki.

bsanders avatar bsanders commented on July 17, 2024

I actually think this works in HEAD now. A few attributes are python types that are string-ified. Marking for testing.

from stacki.

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.