Git Product home page Git Product logo

Comments (2)

sant-swedge avatar sant-swedge commented on May 30, 2024

We actually encountered the same problem with white space, after some investigation it seems that the function cubeFromParams($params) is the cause, as the URL is not decoded when the cube is created by that function.

I did find a solution which is as follows:
Edit cube/application/controllers/IndexController.php
Find:
$cube->slice($param[0], $param[1]);
Change to:
$cube->slice($param[0], urldecode($param[1]));

I did initially see if decoding the name aka $param[0] would allow us to use custom variable names with spaces (and upper cases) but this is more of an architectural limitation of Icinga2 as a whole as it doesn't seem to "escape" the custom variable names when used with database commands which results in errors.

Not sure if this also works with umlauts but I would imagine that it would.

Simon.

from icingaweb2-module-cube.

nilmerg avatar nilmerg commented on May 30, 2024

#17 is merged. Closed.

from icingaweb2-module-cube.

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.