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

Static methods addLayout of LayoutLocalServiceUtil do not save attribute title for layout

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.5 GA, 6.1.1 CE GA2, 6.1.20 EE GA2
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M4
    • Component/s: UI Infrastructure
    • Labels:
    • Environment:
      Windows 7 / Ubuntu 10.04.1 LTS
      Tomcat 6.0.26
      Liferay 6.0.5
      Hsql / Oracle XE
    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      4
    • Similar Issues:
      Show 5 results 

      Description

      Using the static methods addLayout that have the parameter title in their signature does not work as expected.

      In the relevant implementations of those methods in
      LayoutLocalServiceImpl
      the equivalent of
      localeNamesMap.put(defaultLocale, name);
      is missing for the parameter title.

      Instead null or an empty
      new HashMap<Locale, String>()
      is passed on.

      Or is this by design?
      If so it should be documented accordingly.

      Concerning this issue see also LPS-4909

        Issue Links

          Activity

          Hide
          Kristoffer Onias added a comment -

          Thanks for the fix Zsaga!

          Show
          Kristoffer Onias added a comment - Thanks for the fix Zsaga!
          Hide
          Serena Song (Inactive) added a comment -

          PASSED Manual Testing using the following steps:

          1. Start liferay instance.
          2. Navigate to http://localhost:8080/api/jsonws.
          3. Search aadLayout.
          4. Fill in the all the text box about the layout(for example as the following).
              groupId=19 
              privateLayout=true 
              parentLayoutId=0
              name=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US" default-locale="en_US"><Name language-id="en_US">test</Name></root>
              Title=test1
              Description=test1
              Type=portlet 
              Hidden=True 
              friendlyURL=/test2
            
          5. Click "Invoke" and see the Results.

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

          Static methods addLayout of LayoutLocalServiceUtil do not save attribute title for layout. You can see the result in Execute is:

          "title": "",
          "titleCurrentValue": ""

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: f6bfdf784b571ea7b692c3b4b2215e5b03b5b32e.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 8e27906acc1a59e60b6bfdb4dd83c6424979cd6f.

          You can see the value in result of the Execute and the database, the attribute of title for layout is saved successfully.

          Show
          Serena Song (Inactive) added a comment - PASSED Manual Testing using the following steps: Start liferay instance. Navigate to http://localhost:8080/api/jsonws . Search aadLayout. Fill in the all the text box about the layout(for example as the following). groupId=19 privateLayout=true parentLayoutId=0 name=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US" default-locale="en_US"><Name language-id="en_US">test</Name></root> Title=test1 Description=test1 Type=portlet Hidden=True friendlyURL=/test2 Click "Invoke" and see the Results. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Static methods addLayout of LayoutLocalServiceUtil do not save attribute title for layout. You can see the result in Execute is: "title": "", "titleCurrentValue": "" Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: f6bfdf784b571ea7b692c3b4b2215e5b03b5b32e. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 8e27906acc1a59e60b6bfdb4dd83c6424979cd6f. You can see the value in result of the Execute and the database, the attribute of title for layout is saved successfully.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 50 weeks, 1 day ago

                Development

                  Structure Helper Panel