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

Web Content within an Asset Publisher in a site created from a site template generates "Not Found" page

    Details

      Description

      Steps to reproduce:
      1) Start a Vanilla Liferay and login with OmniAdmin user
      2) Go to Admin>Control Panel>Site Templates
      3) Create a new Site template and in its Control Panel, go to Web Content
      4) Create a simple structure e.g. with name "test" and with only 1 text field + a template to render it
      5) Navigate to the homepage of the site template e.g. http://localhost:8080/group/template-10541/home
      6) Drag an Asset Publisher on the page and configure it as per below:

      • Asset Type: Web Content Article
      • Web Content Article Subtype: test
      • Leave all other settings unchanged
        Display settings tab:
      • Asset Link Behavior: View in Context
      • Tick the option: Set as the Default Asset Publisher for This Page
      • Leave all other settings unchanged and Save

      7) Create a new site from the recently created site template and navigate to its homepage
      8) Click on "Add test" in the Asset Publisher
      9) Create a sample web content article and make sure that the Menu "Display Page" on the right-handed side is the same page where the AP is placed (Public Pages>Home)
      10) Publish the article and click on View >>

      Expected Result:
      The article to display

      Actual Results:
      Error on the UI appears:
      Status
      Not Found
      The requested resource was not found.
      http://localhost:8080/group/testsite/-/testarticle

      Branch:
      Reproduced on 6.2.x @ 79aa85f46d78b75c9d5a6b5081019a9918530cb3

      Master: Fixed with an improvement. LPS-48300
      Not reproduced on master @ f7142cca043cd4833665c2b4445ed1601beee62a

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              jenny.chen Jenny Chen
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 7 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE