Code Monkey home page Code Monkey logo

Comments (2)

davidjumani avatar davidjumani commented on September 27, 2024

Hi @rohityadavcloud Could you please provide an example ? I tried createing a user / account with * in the name as well as updating a global setting with * in the value and the result was as expected
Although the * character was encoded in the request url, the resuling change / response is as expected

Eg:

(localhost) 🐱 > update configuration name=consoleproxy.url.domain value=*.turboio.com
[debug] ExecLine line:update configuration name=consoleproxy.url.domain value=*.turboio.com
[debug] ExecCmd args: update, configuration, name=consoleproxy.url.domain, value=*.turboio.com
[debug] Login POST URL:http://localhost:8080/client/apimap[command:[login] domain:[/] password:[password] response:[json] username:[admin]]
[debug] Login POST response status code:200
[debug] Login sessionkey:IYtbd90sWYjnfk-wjOLEl5h9NtA
[debug] NewAPIRequest API request URL:http://localhost:8080/client/api?command=updateConfiguration&name=consoleproxy.url.domain&response=json&sessionkey=IYtbd90sWYjnfk-wjOLEl5h9NtA&value=%2A.turboio.com
[debug] NewAPIRequest response status code:200
[debug] NewAPIRequest response body:{"updateconfigurationresponse":{"configuration":{"category":"Console Proxy","group":"System VMs","subgroup":"ConsoleProxyVM","name":"consoleproxy.url.domain","value":"*.turboio.com","defaultvalue":"","description":"Console proxy url domain","isdynamic":false,"component":"AgentManager","displaytext":"Consoleproxy url domain","type":"String"}}}
{
  "configuration": {
    "category": "Console Proxy",
    "component": "AgentManager",
    "defaultvalue": "",
    "description": "Console proxy url domain",
    "displaytext": "Consoleproxy url domain",
    "group": "System VMs",
    "isdynamic": false,
    "name": "consoleproxy.url.domain",
    "subgroup": "ConsoleProxyVM",
    "type": "String",
    "value": "*.turboio.com"
  }
}

from cloudstack-cloudmonkey.

rohityadavcloud avatar rohityadavcloud commented on September 27, 2024

@davidjumani can you check apache/cloudstack-go#52 and for testing just pass * as value to the global setting both in cli and via shell script to cmk.

from cloudstack-cloudmonkey.

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.