Code Monkey home page Code Monkey logo

compose's People

Contributors

afdaniele avatar jasonhu5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

compose's Issues

API via HTTP when SSL Redirect is enabled

It looks like API calls with App ID/Secret do not work on HTTP when HTTPS is enabled.
The server returns app_id is mandatory. Maybe the arguments are not forwarded to HTTPS.

PHP Session lock

Use session_write_close(); to suspend the session, save the file and release the lock for those API calls that do not change the $_SESSION variable. Add a boolean parameter 'read-only' to web-api-specification.json for each action.

Add loading image to setup page

Every time we confirm a step in setup/, the page reloads up to the tab we confirmed, then stops for a while and reloads to the next step. Add a loading gif to the body of the tab for this intermediate load. This will show that something is happening.

no check for access_level

In web-api/index.php, it seems that nobody is checking $action['access_level'] against Core::getUserRole(). Investigate this.

TODO: try to run an administrator-only action while logged as a simple user and see what happens and in case who/what complains.

Infinitely expanding cache pie charts

In the Settings page, opening and closing the Cache section multiple times will have the effect of expanding the canvas size of the two pie charts.

Permission issue does not allow to create config file

If we install compose in a directory that does not belong to www-data (very common when the code is mounted from outside a Docker container), compose cannot create the configuration file for the core package at boot. This prevents the default value of maintenance_mode from metadata.json to be written, and the user is redirected to maintenance since the default value passed to Core::getSetting('maintenance_mode', 'core') is true.

We either show an error in this case or make it easier for the user to figure out what the issue is. Perhaps, we could use the entrypoint script to check and notify the user somehow (on-the-fly written page?).

Auto-Error: #1542006137

Error reported at 2018-11-12 07:02:17 GMT.

Error message:
An error occurred while talking to the challenges API. The server returned the code <strong>500</strong>.

child_pages

Website compose.afdaniele.com, the page build_markdown from the package doxygen does not have a menu entry but qualifies as child_page of the page docs. The menu entry of the page docs does not highlight when build_markdown is visited.

Error loop

When an error is thrown (i.e., Core::throwError()) but there is no message, the error page will refuse to render and redirect to the default page. When the default page generates the error (with no explanation) a weird loop situation arises.

A possible solution would be to change the error page so that a default error message is shown when there is no message.

configuration files saved without formatting values

The configuration file for the core package (and I guess the others packages too) are dumped with the values not formatted according to the metadata of the configuration.

For instance, the file metadata.json of the configuration for the core package reads:

{
    "configuration_content" : {
        "maintenance_mode" : {
            "title" : "Mainteinance mode (NOT YET IMPLEMENTED)",
            "type" : "boolean",
            "default" : false,
            "details" : "Whether the platform is in maintenance mode"
        },
        . . .
    }
}

whereas after pushing a new configuration from the browser, this is what the file configuration.json looks like:

{
	"maintenance_mode": "1",
	"navbar_title": "Welcome",
	"logo_white": "http:\/\/compose.afdaniele.com\/images\/compose-white-logo.svg",
	"logo_black": "http:\/\/compose.afdaniele.com\/images\/compose-black-logo.svg",
	"admin_contact_email_address": "[email protected]",
	"cache_enabled": "0",
	"guest_default_page": "login",
	"user_default_page": "profile",
	"supervisor_default_page": "profile",
	"administrator_default_page": "profile"
}

It is clear that maintenance_mode should be formatted to be true rather than 1.

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.