Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice::Properties question

Hello,

Strange things happen when you release software to those mysterious creatures
known as "users"! A user of one of my programs put something like this into
a properties file:

password=something=something

...and, my program doesn't get the whole password.

The user's tried "something=something" and something\=something, to no avail.

Is this a library issue, or is there something I can do?

I call it like this:
string DatabaseInfo = properties->getProperty(DatabaseInfo_property);

...and then pass it directly into an std::string, so I do not believe it is a parsing issue in my
program.

I didn't see anything in the documentation about this. Is it a known issue, or did I miss
something?

As always, thanks to everyone at ZeroC for your very excellent tools!

_Jesse Williamson ;-};

Comments

  • bernard
    bernard Jupiter, FL
    Hi Jesse,

    According to the Ice manual, you can have an '=' in your property value, and there is no need to escape it.

    Do you have example of property setting that fails? Just password=something=something ?

    Which version of Ice / platform do you use?

    Cheers,
    Bernard
  • Hmmm....

    Hi, Bernard,

    Thanks for the swift reply!

    You are absolutely correct-- and, I've looked at the issue further. Ice::Properties is working as advertised, but another library I eventually call may not be.

    Appreciatively,

    _Jesse Williamson ;-};