30 November, 2012

Useful Patch for Liferay 6.1.1 GA2 - By Juan

Hi Everyone,

I was just looking out some solution for the problem which is coming out during migration and i found this forum article.

Nice forum article by Juan !!!!
It's really helpful to lookout and solve many issues for Liferay 6.1.1.

He is been doing some years ago, he has  released a patch for solving many issues for 6.1.1 GA2. He has tried to patch only bugs, not improvements.

For patching just unzip the .diff file into liferay 6.1.1 source folder (same folder level as portal-impl, portal-web, etc folders) and use patch command in Linux or other tools for Windows. After that just compile and enjoy!

Example on how to apply patch in Linux: patch -p0 < patch_6.1.1_juan.diff



This patch solves this issues:

SECURITY/PERMISSIONS

LPS-30122 Able to delete any User
LPS-29054 - CLONE - A user with inherited private pages from a user group cannot access the pages
LPS-29208 JournalArticle permissions are not published for roles which permissions were removed
LPS-29008 Users with owner or non-portal administrator roles are allowed to reset omniadmin/default user password and settings
LPS-29379 Several permission checks don't account for customizable or virtual layouts
LPS-29476 Search portlet results are displaying for guest even without guest view permissions. (Web Content / Journal) -> Important issue where private web contents where showed in search result lists.
LPS-29597 members without permissions are able to access private pages
LPS-29743 Users can still view portlet in private pages even through view permission is unchecked
LPS-29516 Rollback LPS-26318 (Web Content Display portlet is not visible to guest even with guest view permission)
LPS-29505 When using search, content scoped to groups may not be handled properly
LPS-30418 Add dynamic inheritance check to getFileEntries().
LPS-30518 Apply same check as DLStoreImpl#getFile
LPS-30015 guest can's search the bookmark which permission is "Viewable by Anyone(Guest Role)
LPS-30437 Users without permission can create folders/files in the root folder
LPS-30188 In default, site member can be able to add documents in home directory of document and media portlet

BROWSER/JAVASCRIPT

LPS-29041 Path doesn't return with correct protocol -> Critical issue for users who use load balancer using ssl only.
LPS-29154 Control Panel theme breaks CKeditor dialog in IE8
LPS-29594 Poll Display portlet does not show correctly the bars when showing the poll's result
LPS-28924 - Editing a Subcategory converts it from child to sibling
LPS-29645 Unable to download a document in IE8 with SSL -> Without this patch, you couldn't download documents and show inline (PDF) in IE if using SSL only.
LPS-30181 WebServerServlet URLs do not correctly set the content length on HTTP headers for non-image files

TEMPLATES/STAGING

LPS-28813 The article's default template isn't published to remote live
LPS-28977 - Temp file not being deleted after LAR import through hook
LPS-29072 ArticleUrlTitle may change when publishing to live
LPS-29072 Keep the urlTitle when updating
LPS-29370 Wrong Page Template export with some porlet
LPS-29449 Delete Missing Pages option during Publish deletes all live pages except the selected pages
LPS-29474 Pages created w/Templates that include Documents and Media Portlet w/Global Scope creates local copy of Doc & Media
LPS-29629 Fix deleteMissingLayouts when there is no staging group
LPS-29495 Journal article export/import does't work properly when last revision is expired
LPS-28995 Disable non "site pages variations" pages in selection list of the pop up Publish to Live
LPS-29021 If a portlet is staged, this should be checked by default in publish to live
LPS-28147 Portlet permissions removed when resetting site to site template


DOCUMENTS & MEDIA/WEBDAV

LPS-28094 - Document Library: Moving documents between folders results in error accessing file
LPS-29108 WebDav in Windows XP seemed broken in 6.1. This patch solves all those issues. -> Important issue for WebDav + XP users
LPS-29320 Document & Media Portlet Search returns inconsistent results
LPS-29105 Documents and Media Document Types and Metadata Sets does not show the right number of results
LPS-29786 Unable to upload a file with valid extension using multiple uploader after setting "Allowed File Extensions" in control panel
LPS-29678 Getting Content Stream should get the latest version
LPS-29574 If image/document already exist, Upload Image/Document From Web Content Portlet Issue will throw errors in log but and not display "image/document already exists or image already uploaded"
LPS-25911 WebDAV URL will have "null" as context path for the company group
LPS-30621 move folders and documents fail in unix or linux platform when crossing file system
LPS-29928 Editing documents through WebDAV resets Custom Field values and Categories for document

PLUGINS

LPS-29000 DestinationEventListener now removed on plugin undeployment
LPS-29103 Custom Spring MVC -portlets broken after upgrading to Liferay 6.1 GA2 (web.xml listener order)


PERFORMANCE/STABILITY

LPS-29268 Simple DOS attack on PortletPreferences
LPS-29323 Long load time when accessing files with links like '/c/document_library/get_file
LPS-29406 Images in blog, wiki or message board render slowly in Internet explorer 7 and 8
LPS-29508 Small memory optimization for PermissionCheckerBagImpl instances
LPS-29031 Finder Cache is not properly invalidated in a cluster environment
LPS-30243 clear resources so portal can be restarted in app servers (weblogic)

UPGRADE

LPS-29479 Non-Liferay tables upgraded on Oracle -> important issue for Oracle users.
LPS-29349 Startup exception when en_US not present
LPS-29879 Verify corrupt layout data


LDAP

LPS-29100 Several user fields are reset after LDAP import
LPS-29003 Wrong documentation in LPS-28639, must manually set java system properties instead of relying on system.properties file
LPS-30121 Defined LDAP values are overriden by database values after configuration


MISC.

LPS-28949 FriendlyURL to non-existing web content does not redirect correctly
LPS-29086 Search Portlet 'Return to Full Page' Inconsistent
LPS-29057 Asset Publisher - "Does not Contain" Filter not working
LPS-29324 Inconsistent behavior encountered with 'AssetTagServiceUtil' search method when logging in as 'Power User' vs 'Admin' user
LPS-29216 Internal Server Error in Wiki, with "Select Page" scope
LPS-29378 File Attachments Are Being Deleted When Dynamic Data Lists Records are Deleted
LPS-29202 /c/journal/get_articles search on structureId doesn't return any articles even when there are correct articles present
LPS-29360 Related Assets Portlet does not work when global or multiple scopes(groups) are selected in Asset Publisher
LPS-29572 Related assets for wikis does not correct count the number of pages
LPS-29668 Fixing void return type function calls' UnsupportedOperationException throwing.
LPS-29626 Mime type detection closes stream during import
LPS-29405 Double indexing of web content overwrites version with oldest version
LPS-30058 NPE when viewing a page with a portlet scoped to a layout that doesn't exist
LPS-29715 Sitemap.xml date is not valid ISO8601 date
LPS-30524 Using Virtual Hosts when editing a web content in the AP makes you authenticate again
LPS-29716 Fix sitemap.xml for portal instances
LPS-29523 Arguments for JSON actions does not have fail back deserilization
LPS-29781 Unable to save categories when adding or updating users
LPS-27624 Being a member of an Organization with no Pages will reduce the number of drop-down items in Go To
LPS-29845 jsonws ctx root
LPS-29904 Regression issue with portal-ext.properties loading order (order should be reversed)
LPS-30185 Can not send email to mutilple recipients
LPS-30026 SecureFilter fails to populate companyId basic auth requests for a particular session

EDIT: added simple categories for summarize issues.
EDIT 2012-10-30. Added issues:

LPS-30188 In default, site member can be able to add documents in home directory of document and media portlet
LPS-30026 SecureFilter fails to populate companyId basic auth requests for a particular session
LPS-30185 Can not send email to mutilple recipients
LPS-29904 Regression issue with portal-ext.properties loading order (order should be reversed)
LPS-29845 jsonws ctx root
LPS-30181 WebServerServlet URLs do not correctly set the content length on HTTP headers for non-image files
LPS-27624 Being a member of an Organization with no Pages will reduce the number of drop-down items in Go To
LPS-30121 Defined LDAP values are overriden by database values after configuration
LPS-29781 Unable to save categories when adding or updating users
LPS-29928 Editing documents through WebDAV resets Custom Field values and Categories for document
LPS-30437 Users without permission can create folders/files in the root folder
LPS-29523 Arguments for JSON actions does not have fail back deserilization
LPS-29103 Custom Spring MVC -portlets broken after upgrading to Liferay 6.1 GA2 (web.xml listener order)
LPS-30015 guest can's search the bookmark which permission is "Viewable by Anyone(Guest Role)
LPS-29716 Fix sitemap.xml for portal instances
LPS-30418 Add dynamic inheritance check to getFileEntries().
LPS-30518 Apply same check as DLStoreImpl#getFile
LPS-30524 Using Virtual Hosts when editing a web content in the AP makes you authenticate again
LPS-30243 clear resources so portal can be restarted in app servers (weblogic)
LPS-29715 Sitemap.xml date is not valid ISO8601 date
LPS-30621 move folders and documents fail in unix or linux platform when crossing file system

Attachments: patch_6.1.1_juan_3.zip (139.3k)

Rate Me:

2 Discussion:

ediz bozüyük said...

Could you please reupload the patch here, the download is no more available at liferay.com. How can we apply this patch on a windows machine?
Thank you very much!!

Vitaliy Natarov said...

http://linux-notes.org/ustanovka-liferay-6-2-na-debian-ubuntu-linux-mint/