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

Public API - Creating new location for object, on the original location it doesn't show the new location

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Invalid
    • Affects Version/s: 5.1-dev
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      Server OS: Red Hat 6
      Database: MySQL 5.1.61
      Browser: Firefox 18.0.1

    • Sprint:
      Stetind Sprint 6

      Description

      When creating a new location for an object through the Public API, on the original location in the "Locations" details there is only the original location.
      However at the new location both locations are shown up

      Code:
      at ezpublishapilocations.php

          function _testTC625Locations__stage3()
          {
              $this->api->createLocation( "/News_1/TL1", "/News_2/" );
          }
      

      at ezpublishapitesthelper.php

          public function createLocation ( $contentPath, $parentLocationPath )
          {
              return $this->saveLocation(
                  $this->getContentInfoByPath( $contentPath ),
                  $this->newLocation( $parentLocationPath )
              );
          }
       
          public function saveLocation( ContentInfo $contentInfo, LocationCreateStruct $location )
          {
              $locationService = $this->repo->getLocationService();
              $newLocation = $locationService->createLocation( $contentInfo, $location );
       
              $this->addToHistory( static::ACTION_CREATE_LOCATION,
                  array(
                      'id' => $newLocation->id
                  )
              );
       
              return $newLocation;
          }
      

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Backlog Backlog
        3d 6h 48m 1 André Rømcke 04/Feb/13 7:54 PM
        Backlog Backlog Development Development
        14d 14h 28m 1 André Rømcke 19/Feb/13 10:22 AM
        Development Development Backlog Backlog
        7d 13m 1 André Rømcke 26/Feb/13 10:36 AM
        Backlog Backlog InputQ InputQ
        21d 9h 19m 1 André Rømcke 19/Mar/13 7:56 PM
        InputQ InputQ Development Development
        7d 21h 5m 1 jerome.vieilledent@ez.no 27/Mar/13 5:01 PM
        Development Development Development Done Development Done
        10s 1 jerome.vieilledent@ez.no 27/Mar/13 5:01 PM
        Development Done Development Done Closed Closed
        11s 1 jerome.vieilledent@ez.no 27/Mar/13 5:02 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcos Loureiro (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 day
              1d
              Remaining:
              Time Spent - 1 hour Remaining Estimate - 7 hours
              7h
              Logged:
              Time Spent - 1 hour Remaining Estimate - 7 hours
              1h

                Agile