Giter Site home page Giter Site logo

mocitec's Introduction

MOCITEC 2023

Containers to run the MOCITEC 2023 website.

Setup

Clone the repository:

git clone <MOCITEC_2023_PRIVATE_REPOSITORY_URL> app

Usage

docker-compose up -d

mocitec's People

Contributors

werlang avatar

Watchers

 avatar

mocitec's Issues

# Error returned when trying to create a new project

Description

Api is not handling errors when trying to create a new project without providing the right parameters.

Steps to reproduce

The following request:

POST /projects

Body:

title: "Test"
abstract: "Test"

Expected behavior

Some kind of api error asking for the missing parameters should be returned.

Actual behavior

The following error is returned:

Warning: Undefined array key "level_id" in /var/www/html/source/App/MocitecApi/Projects.php on line 85

Warning: Undefined array key "field_id" in /var/www/html/source/App/MocitecApi/Projects.php on line 86

Warning: Undefined array key "keyword_01" in /var/www/html/source/App/MocitecApi/Projects.php on line 88

Warning: Undefined array key "keyword_02" in /var/www/html/source/App/MocitecApi/Projects.php on line 89

Warning: Undefined array key "keyword_03" in /var/www/html/source/App/MocitecApi/Projects.php on line 90

Fatal error: Uncaught TypeError: Source\Models\Project::bootstrap(): Argument #4 ($levelId) must be of type int, null given, called in /var/www/html/source/App/MocitecApi/Projects.php on line 90 and defined in /var/www/html/source/Models/Project.php:28 Stack trace: #0 /var/www/html/source/App/MocitecApi/Projects.php(90): Source\Models\Project->bootstrap() #1 /var/www/html/vendor/coffeecode/router/src/RouterTrait.php(114): Source\App\MocitecApi\Projects->create() #2 /var/www/html/vendor/coffeecode/router/src/Dispatch.php(197): CoffeeCode\Router\Dispatch->execute() #3 /var/www/html/mocitecapi/index.php(109): CoffeeCode\Router\Dispatch->dispatch() #4 {main} thrown in /var/www/html/source/Models/Project.php on line 28

## Description

Api is not handling errors when trying to create a new project without providing the right parameters.

Steps to reproduce

The following request:

POST /projects

Body:

title: "Test"
abstract: "Test"

Expected behavior

Some kind of api error asking for the missing parameters should be returned.

Actual behavior

The following error is returned:

Warning: Undefined array key "level_id" in /var/www/html/source/App/MocitecApi/Projects.php on line 85

Warning: Undefined array key "field_id" in /var/www/html/source/App/MocitecApi/Projects.php on line 86

Warning: Undefined array key "keyword_01" in /var/www/html/source/App/MocitecApi/Projects.php on line 88

Warning: Undefined array key "keyword_02" in /var/www/html/source/App/MocitecApi/Projects.php on line 89

Warning: Undefined array key "keyword_03" in /var/www/html/source/App/MocitecApi/Projects.php on line 90

Fatal error: Uncaught TypeError: Source\Models\Project::bootstrap(): Argument #4 ($levelId) must be of type int, null given, called in /var/www/html/source/App/MocitecApi/Projects.php on line 90 and defined in /var/www/html/source/Models/Project.php:28 Stack trace: #0 /var/www/html/source/App/MocitecApi/Projects.php(90): Source\Models\Project->bootstrap() #1 /var/www/html/vendor/coffeecode/router/src/RouterTrait.php(114): Source\App\MocitecApi\Projects->create() #2 /var/www/html/vendor/coffeecode/router/src/Dispatch.php(197): CoffeeCode\Router\Dispatch->execute() #3 /var/www/html/mocitecapi/index.php(109): CoffeeCode\Router\Dispatch->dispatch() #4 {main} thrown in /var/www/html/source/Models/Project.php on line 28

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.