Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21354

Siteaccess part missing in generated symfony routes

    Details

      Description

      The siteaccess is not prepended on generated routes defined in the symfony stack.

        Issue Links

          Activity

          Andras Debreczeni created issue -
          Hide
          Andras Debreczeni added a comment -
          Show
          Andras Debreczeni added a comment - somewhat related: https://jira.ez.no/browse/EZP-20686
          Jérôme Vieilledent (Inactive) made changes -
          Field Original Value New Value
          Summary Siteaccess part missing in generated smyfony routes Siteaccess part missing in generated symfony routes
          Jérôme Vieilledent (Inactive) made changes -
          Link This issue relates to EZP-20686 [ EZP-20686 ]
          Hide
          Joaquim Cavalleri (Inactive) added a comment -
          Steps to reproduce:

          In ezpublish.yml define, a Map\URI match method, such as:

          match:
            Map\URI:
              eng: eng
              ezadmin: ezadmin
              ezsite: ezsite

          Create a new SF bundle and define the following routes:

          my_test_bundle_main:
              path: /members/
              defaults: { _controller: "MyTestBundle:Default:profile" }
          my_test_bundle_account:
              path: /members/my_account/
              defaults: { _controller: "MyTestBundle:Default:account" }

          Implement the actions as such:

              public function profileAction()
              {
                  $url = $this->get( "router" )->generate( "my_test_bundle_account" );
                  $response = new \Symfony\Component\HttpFoundation\Response;
                  $response->setContent( $url );
                  return $response;
              }
              public function accountAction()
              {
                  $response = new \Symfony\Component\HttpFoundation\Response;
                  $response->setContent( "Account action called" );
                  return $response;
              }

          Open profile url in your browser
          <your-domain>/eng/<your-bundle>/members/
          The url will render <your-bundle>/members/my_account instead of the expected /eng/<your-bundle>/members/my_account

          Show
          Joaquim Cavalleri (Inactive) added a comment - Steps to reproduce: In ezpublish.yml define, a Map\URI match method, such as: match: Map\URI: eng: eng ezadmin: ezadmin ezsite: ezsite Create a new SF bundle and define the following routes: my_test_bundle_main: path: /members/ defaults: { _controller: "MyTestBundle:Default:profile" } my_test_bundle_account: path: /members/my_account/ defaults: { _controller: "MyTestBundle:Default:account" } Implement the actions as such: public function profileAction() { $url = $this->get( "router" )->generate( "my_test_bundle_account" ); $response = new \Symfony\Component\HttpFoundation\Response; $response->setContent( $url ); return $response; } public function accountAction() { $response = new \Symfony\Component\HttpFoundation\Response; $response->setContent( "Account action called" ); return $response; } Open profile url in your browser <your-domain>/eng/<your-bundle>/members/ The url will render <your-bundle>/members/my_account instead of the expected / eng /<your-bundle>/members/my_account
          Joaquim Cavalleri (Inactive) made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          Gunnstein Lye made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Joaquim Cavalleri (Inactive) made changes -
          Fix Version/s Customer request [ 11018 ]
          Gunnstein Lye made changes -
          Rank Ranked higher
          Jérôme Vieilledent (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ]
          Jérôme Vieilledent (Inactive) made changes -
          Fix Version/s 5.2 [ 11281 ]
          Affects Version/s 5.0 [ 10300 ]
          Show
          Jérôme Vieilledent (Inactive) added a comment - https://github.com/ezsystems/ezpublish-kernel/pull/474
          Jérôme Vieilledent (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 6 hours [ 21600 ]
          Worklog Id 37286 [ 37286 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/00ef707bb630acb1005dfc299edc1cc93e5cc03c
          Jérôme Vieilledent (Inactive) made changes -
          Time Spent 6 hours [ 21600 ] 1 day [ 28800 ]
          Worklog Id 37303 [ 37303 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Marcos Loureiro (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ] Marcos Loureiro [ marcos.loureiro@ez.no ]
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved
          Marcos Loureiro (Inactive) logged work - 31/Jul/13 12:57 PM - edited
          • Time Spent:
            3 hours, 15 minutes
             

            Testing (master and 5.1)
            Designing test case

          Marcos Loureiro (Inactive) made changes -
          issue.field.resolutiondate 2013-07-31 10:57:22.0 2013-07-31 10:57:22.252
          Time Spent 1 day [ 28800 ] 1 day, 3 minutes [ 28995 ]
          Worklog Id 37362 [ 37362 ]
          Marcos Loureiro (Inactive) made changes -
          Assignee Marcos Loureiro [ marcos.loureiro@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Marcos Loureiro (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Marcos Loureiro (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ] 15 seconds [ 15 ]
          Time Spent 1 day, 3 minutes [ 28995 ] 1 day, 3 minutes [ 28980 ]
          Worklog Id 37362 [ 37362 ]
          Marcos Loureiro (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Marcos Loureiro (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Marcos Loureiro (Inactive) made changes -
          Remaining Estimate 15 seconds [ 15 ] 0 minutes [ 0 ]
          Time Spent 1 day, 3 minutes [ 28980 ] 1 day, 3 hours, 15 minutes [ 40500 ]
          Worklog Id 37362 [ 37362 ]
          Marcos Loureiro (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 57178 ] EZ* Development Workflow [ 84100 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 84100 ] EZEE Development Workflow [ 122736 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          1h 45m 1 joaquim.cavalleri@ez.no 26/Jul/13 6:01 PM
          Confirmed Confirmed InputQ InputQ
          2d 18h 21m 1 Gunnstein Lye 29/Jul/13 12:23 PM
          InputQ InputQ Development Development
          58m 46s 1 jerome.vieilledent@ez.no 29/Jul/13 1:21 PM
          Development Development Development Review Development Review
          5h 39m 1 jerome.vieilledent@ez.no 29/Jul/13 7:00 PM
          Development Review Development Review Development Review done Development Review done
          17h 17m 1 jerome.vieilledent@ez.no 30/Jul/13 12:18 PM
          Development Review done Development Review done Documentation Review done Documentation Review done
          3m 5s 1 jerome.vieilledent@ez.no 30/Jul/13 12:21 PM
          Documentation Review done Documentation Review done QA QA
          21h 32m 1 Marcos Loureiro (Inactive) 31/Jul/13 9:54 AM
          QA QA Closed Closed
          3h 2m 1 Marcos Loureiro (Inactive) 31/Jul/13 12:57 PM
          Closed Closed Reopened Reopened
          1m 50s 2 Marcos Loureiro (Inactive) 31/Jul/13 12:59 PM
          Reopened Reopened Closed Closed
          0s 2 Marcos Loureiro (Inactive) 31/Jul/13 12:59 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Andras Debreczeni
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 15 minutes
                1d 3h 15m