Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70031

Entries on the Organization_ table do not always have full tree paths

    Details

      Description

      When a user updates (adds, removes, or changes) an Organization's parent organization, the tree path for that organization and all of its child organizations should update to reflect the new parent. This does not happen properly when adding a new parent, only when removing a parent.

      Steps to reproduce:

      1. Follow steps 1-4 of LPS-69881
      2. Look at the treePath column of the Organization_ table

      Expected Behavior:
      Each organization will have full treepaths containing the ids of all their ancestors

      Actual Behavior:
      Each treepath is at most 2 org id's in length

      This happens because we are using too specific a query when re-building the treepaths of an organization (see OrganizationLocalServiceImpl.java).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sylvia.luan Sylvia Luan
                Reporter:
                drew.brokke Drew Brokke
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 44 weeks, 4 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master