Bug Report #3740

CLI does not respect default route when no --uri is passed

Added by Marcel Evenson over 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:02/13/2011
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:v3.1.3
Resolution:fixed Points:

Description

After upgrading to 3.1 it seems that my default routes are not being used when being called via the CLI (no --uri paramater is passed).

Eg.
Route::set('default', '(<controller>(/<action>(/<id>)))',array('id' => '[a-zA-Z0-9_.]++'))
->defaults(array(
'directory' => 'cli',
'controller' => 'help',
'action' => 'index',
)
);

Calling kohana's index.php with no --uri parameter

Http_Exception_404 [ 404 ]: The requested URL 1 was not found on this server. ~ SYSPATH/classes/kohana/request/client/internal.php [ 94 ]

Associated revisions

Revision 23584889
Added by Jeremy Bush over 3 years ago

Default to empty uri instead of TRUE when no --uri parameter is specified on the cli. Fixes #3740

Revision e4f30a79
Added by Jeremy Bush over 3 years ago

Testing that default uri works for cli requests, Refs #3740

History

#1 Updated by Jeremy Bush over 3 years ago

  • Target version changed from v3.1.1 to v3.1.2

#2 Updated by Jeremy Bush over 3 years ago

  • Target version changed from v3.1.2 to v3.1.3

#3 Updated by Jeremy Bush over 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:23584889e1fced786ae498adaa8e6234469f039f.

#4 Updated by Chris Bandy about 3 years ago

  • Resolution set to fixed

Also available in: Atom PDF