peterborkuti/liferay-portal — pull request #6 by vilmospapp (2014-03-14 10:21:36+00:00)
Title: [TECHNICAL SUPPORT] LPS-44802 Upgrade from 6.1 to 6.2 causes DLFileEntry contain NULL values in ClassNameId colum what corrupts ActionableDynamicQuery results

Hi Peter,

It's a simple upgrade issue caused by not defining proper default values for new columns causing corrupted query results after upgrade. But I had to make the service layer consistent with the default 0 values for classNameId and classPK based on the comment of @sergiogonzalez at: https://github.com/sergiogonzalez/liferay-portal/pull/1281#issuecomment-36768252

Edualdo confirmed that it shouldn't be a problem to use 0 as default values.

You can verify the working of the fix by adding documents do DL portlet and to Wiki as attachment. For the latter the classNameId and classPK will have different values than 0.

Cheers,
Vilmos