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

DDMTemplate permissions are lost during LAR import in case JournalArticle classNameId has different value

Details

    Description

      DDMTemplate permissions are lost during LAR import in case JournalArticle classNameId has different value.

      ClassNameId value can be different in case Liferay installation was upgraded or created with a different fixpack level

       Steps to reproduce

      1. Install a clean Liferay
      2. Create a WC Structure and Template
      3. Configure any permissions in Template
      4. Export to LAR file and save it. (Important note: you have to check "export permissions" checkbox in export configuration page)
      5. Delete WC Structure and Template
      6. Stop Liferay
      7. Go to ClassName_ table and change classNameId value for com.liferay.journal.model.JournalArticle you can do it with following SQL:
        • update Classname_ set classNameId = 99999 where value = 'com.liferay.journal.model.JournalArticle'
      8. Start Liferay
      9. Import previous exported LAR file (Important note: you have to check "import permissions" checkbox in export configuration page)
      10. Check imported WC template permissions:
        • Expected behavior: permissions are imported
        • Wrong behavior: permissions are not imported

      Attachments

        1. Failed.PNG
          Failed.PNG
          48 kB
        2. screenshot-1.png
          screenshot-1.png
          79 kB

        Activity

          People

            harry.chai Harry Chai
            jorge.diaz Jorge Diaz
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 22 weeks, 5 days ago

              Packages

                Version Package
                7.0.10.13 DXP SP13
                7.0.X
                7.1.X
                7.2.10 DXP FP4
                7.2.X
                7.3.0 CE GA1
                7.3.10 DXP GA1
                Master