KETSE / casebox-vagrant

Casebox Vagrant
GNU Affero General Public License v3.0
9 stars 15 forks source link

Link on new cores doesn't work. #2

Closed sergiolchan closed 7 years ago

sergiolchan commented 7 years ago

It is on the V2.

The default core works fine but when I create new cores on the Admin UI and try to access to the link it shows:

Oops! An Error Occurred

The server returned a "404 Not Found".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

in /var/www/casebox/var/logs

in the new core log called "Prueba" shows:

---------------------------------
`[2016-10-03 20:44:40] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /c/Prueba/"" at /var/www/casebox/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 123 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /c/Prueba/\" at /var/www/casebox/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:123, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0):  at /var/www/casebox/var/cache/Prueba/appPruebaUrlMatcher.php:424)"} []`
---------------------------------

When I run php /var/www/casebox/bin/console debug:router shows

- -------- ------ ----------------------------------------------
  Name                                         Method     Scheme   Host   Path
- -------- ------ ----------------------------------------------
  browserrest_api_browser                      POST       ANY      ANY    /c/{coreName}/api/browser.{_format}
  browser_actionsrest_api_browser_actions      POST       ANY      ANY    /c/{coreName}/api/browser/actions.{_format}
  browser_treerest_api_browser_tree            POST       ANY      ANY    /c/{coreName}/api/browser/tree.{_format}
  browser_viewrest_api_browser_view            POST       ANY      ANY    /c/{coreName}/api/browser/view.{_format}
  favoritesrest_api_favorites                  POST       ANY      ANY    /c/{coreName}/api/favorites.{_format}
  filesrest_api_files                          POST       ANY      ANY    /c/{coreName}/api/files.{_format}
  notificationsrest_api_notifications          POST       ANY      ANY    /c/{coreName}/api/notifications.{_format}
  objectsrest_api_objects                      POST       ANY      ANY    /c/{coreName}/api/objects.{_format}
  plugins_commentsrest_api_plugins_comments    POST       ANY      ANY    /c/{coreName}/api/plugins/comments.{_format}
  pathrest_api_path                            POST       ANY      ANY    /c/{coreName}/api/path.{_format}
  securityrest_api_security                    POST       ANY      ANY    /c/{coreName}/api/security.{_format}
  systemrest_api_system                        POST       ANY      ANY    /c/{coreName}/api/system.{_format}
  searchrest_api_search                        POST       ANY      ANY    /c/{coreName}/api/search.{_format}
  state_db_providerrest_api_state_dbprovider   POST       ANY      ANY    /c/{coreName}/api/state/dbprovider.{_format}
  tasksrest_api_tasks                          POST       ANY      ANY    /c/{coreName}/api/tasks.{_format}
  templatesrest_api_templates                  POST       ANY      ANY    /c/{coreName}/api/templates.{_format}
  user_loginrest_api_user_login                POST       ANY      ANY    /c/{coreName}/api/user/login.{_format}
  user_logoutrest_api_user_logout              POST       ANY      ANY    /c/{coreName}/api/user/logout.{_format}
  userrest_api_user                            POST       ANY      ANY    /c/{coreName}/api/user.{_format}
  users_groupsrest_api_users_groups            POST       ANY      ANY    /c/{coreName}/api/users/groups.{_format}
  app_core_login                               GET|POST   ANY      ANY    /c/{coreName}/login/{action}
  app_core_logout                              GET|POST   ANY      ANY    /c/{coreName}/logout
  app_core_recovery                            GET|POST   ANY      ANY    /c/{coreName}/recover/forgot-password
  app_core_reset                               GET|POST   ANY      ANY    /c/{coreName}/recover/reset-password
  **app_core                                     ANY        ANY      ANY    /c/{coreName}/**
  app_core_get_default_user_photo              ANY        ANY      ANY    /c/{coreName}/photo/.png
  app_core_get_user_photo                      ANY        ANY      ANY    /c/{coreName}/photo/{userId}.{extension}
  app_core_file_upload                         ANY        ANY      ANY    /c/{coreName}/upload/
  app_core_item_edit                           ANY        ANY      ANY    /c/{coreName}/edit/{templateId}/{id}
  app_core_file_view                           ANY        ANY      ANY    /c/{coreName}/view/{id}/
  app_core_file_download                       ANY        ANY      ANY    /c/{coreName}/download/{id}/
  app_core_file_webdav_slash                   ANY        ANY      ANY    /dav/{coreName}/{action}/{filename}/
  app_core_file_webdav                         ANY        ANY      ANY    /dav/{coreName}/{action}/{filename}
  app_core_action_webdav_slash                 ANY        ANY      ANY    /dav/{coreName}/{action}/
  app_core_action_webdav                       ANY        ANY      ANY    /dav/{coreName}/{action}
  app_default                                  ANY        ANY      ANY    /
  app_serve_js_db                              GET        ANY      ANY    /c/{coreName}/js/DB.js
  app_get_router_api                           GET        ANY      ANY    /c/{coreName}/remote/api
  app_remote_router                            GET|POST   ANY      ANY    /c/{coreName}/remote/router
 ----- -------- ------ ----------------------------------------------

TL;DL

Default core works fine and new cores don't.

sergiolchan commented 7 years ago

Problem solved (Workaround?).

Use only lowercase on the name of the cores.

Greetings.