PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-25275

Unable to retrieve the journal articles using JournalContentUtil class

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Similar Issues:
      Show 5 results 

      Description

      I am trying to fetch the journal articles using $journalContentUtil variable in velocity.
      1. Created two web contents Webcontent1 with default structure, Webcontent2 with user defined structure and templates.
      2. Tried to retrieve the Webcontent1 using $journalContentUtil.getContent(10180, '11007', 'view', $themeDisplay.language-id, $xmlrequest) from the template of Webcontent2 and succeeded.

      3. Created two web contents Webcontent3,Webcontent4 with two different structures and templates.
      4. Tried to retrieve Webcontent3 using $journalContentUtil from the template of Webcontent4 but failed
      5. Tried using various overloaded getContent methods in JournalContentUtil class still unable to fetch the article.
      6. Also tried fetching the article in JSP but it is returning null.

      Note: The templates are included in the web content by parsing VM file in the theme. It is working fine in liferay6.0 CE

        Issue Links

          Activity

          Hide
          Pani Gui (Inactive) added a comment -

          FAILED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          Using JournalContentUtil class to retrieve web contents fails.

          Failed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2f2bc94e936de7a4865255d25ba7516c5406fc5b.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 218a1b749c2f250969826c8a42e6b72aba951fd4.

          I used $journalContentUtil.getContent(10180, '11403', $viewMode, $request.theme-display.language-id, '') to retrieve web contents.
          When retrieving a web content with a structure and a template using the class from another template of a web content, it's still failed.
          If retrieving a web content with no structure and no template, it's successful.

          Show
          Pani Gui (Inactive) added a comment - FAILED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Using JournalContentUtil class to retrieve web contents fails. Failed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2f2bc94e936de7a4865255d25ba7516c5406fc5b. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 218a1b749c2f250969826c8a42e6b72aba951fd4. I used $journalContentUtil.getContent(10180, '11403', $viewMode, $request.theme-display.language-id, '') to retrieve web contents. When retrieving a web content with a structure and a template using the class from another template of a web content, it's still failed. If retrieving a web content with no structure and no template, it's successful.
          Hide
          Jose Jimenez added a comment -

          I tested with the next call and works fine:

          $journalContentUtil.getContent( 10180, '10440', $viewMode, $request.theme-display.language-id , $xmlRequest )

          Can you test another time replacing '10440' by your articleId and the last parameter by $xmlRequest?

          Thanks

          Show
          Jose Jimenez added a comment - I tested with the next call and works fine: $journalContentUtil.getContent( 10180, '10440', $viewMode, $request.theme-display.language-id , $xmlRequest ) Can you test another time replacing '10440' by your articleId and the last parameter by $xmlRequest? Thanks
          Hide
          Pani Gui (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          Unable to retrieve web contents using JournalContentUtil class.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 1ba4fa3e1e3eb263d0ddb21a4839b7deac69f32d.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: b9746b127bac28c75285cf306123a744af056fd4.

          JournalContentUtil class works properly. Web contents are able to be retrieved to another web contents.

          Show
          Pani Gui (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Unable to retrieve web contents using JournalContentUtil class. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 1ba4fa3e1e3eb263d0ddb21a4839b7deac69f32d. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: b9746b127bac28c75285cf306123a744af056fd4. JournalContentUtil class works properly. Web contents are able to be retrieved to another web contents.
          Hide
          Michael Saechang added a comment -

          Thank you Pani for testing. Closing as 'Fixed'.

          Show
          Michael Saechang added a comment - Thank you Pani for testing. Closing as 'Fixed'.
          Hide
          ranga rao bobbili added a comment -

          Hi Liferay Team,

          FYI...
          I am still facing same issue in Liferay Portal Enterprise Edition 6.2.10 EE GA1 (Newton / Build 6210 / November 1, 2013) and raised support ticket in LESA(https://www.liferay.com/group/customer/support/-/support/ticket/SP-118).

          Thanks,
          Ranga Rao

          Show
          ranga rao bobbili added a comment - Hi Liferay Team, FYI... I am still facing same issue in Liferay Portal Enterprise Edition 6.2.10 EE GA1 (Newton / Build 6210 / November 1, 2013) and raised support ticket in LESA( https://www.liferay.com/group/customer/support/-/support/ticket/SP-118 ). Thanks, Ranga Rao

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 weeks, 3 days ago

                Development

                  Structure Helper Panel