Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Muhammad Ghufron
About ResourceCode Entity in Liferay 6.0
August 20, 2014 2:53 AM
Answer

Muhammad Ghufron

Rank: New Member

Posts: 18

Join Date: August 7, 2014

Recent Posts

Hi All I'm newbie in Liferay, I have a question

I'm doing upgrade Liferay Portal 6.0 CE to 6.2 CE (using Oracle), but I have problem :

1
207:11:16,687 ERROR [localhost-startStop-1][MainServlet:209] java.lang.IllegalStateException: Permission conversion to algorithm 6 has not been completed. Please complete the conversion prior to starting the portal. The conversion process is available in portal versions starting with 5203 and prior to 6200.
3java.lang.IllegalStateException: Permission conversion to algorithm 6 has not been completed. Please complete the conversion prior to starting the portal. The conversion process is available in portal versions starting with 5203 and prior to 6200.
4    at com.liferay.portal.tools.DBUpgrader._checkPermissionAlgorithm(DBUpgrader.java:297)


I found this same problem in https://www.liferay.com/community/forums/-/message_boards/message/41656646

One of Liferay Staff (Alberto Chaparro) explain that

That error is shown because the resourceCode table isn't empty and that means that the algorithm conversion wasn't complete successfully. So, please, check the logs from the day you executed this process, fix them (maybe you will need to restore the database prior to do that) and repeat the process. This was the reason to pointed out the section Migrate to Algorithm 6 of the guide in my last post.


I just want to know what is ResourceCode table and when Liferay doing insert into ResourceCode table ? because I have doing experiment if I'm using fresh db, the ResourceCode entity doesn't exist, but in my dump file (from production server) ResourceCode table contains 5716 record, so that when ResourceCode table is created and inserted ?

Regards,
Alberto Chaparro
RE: About ResourceCode Entity in Liferay 6.0
August 26, 2014 4:18 AM
Answer

Alberto Chaparro

LIFERAY STAFF

Rank: Regular Member

Posts: 155

Join Date: April 25, 2011

Recent Posts

Hi Muhammad,

Muhammad Ghufron:

I just want to know what is ResourceCode table and when Liferay doing insert into ResourceCode table ? because I have doing experiment if I'm using fresh db, the ResourceCode entity doesn't exist, but in my dump file (from production server) ResourceCode table contains 5716 record, so that when ResourceCode table is created and inserted ?


The table resourceCode stores a key for every tuple composed by companyId + a resource type (image, web content, etc.) + an scope. ResourceCode is generated during startup if you use permission algorithm 5 and it's not longer necessary if you use permission algorithm 6. If your current production server contains records for ResourceCide table means:
1- You are using permission algorithm 5.
or
2- You performed a algorithm conversion process but it didn't finish sucessfully.

Regards.
Muhammad Ghufron
RE: About ResourceCode Entity in Liferay 6.0
August 27, 2014 1:16 AM
Answer

Muhammad Ghufron

Rank: New Member

Posts: 18

Join Date: August 7, 2014

Recent Posts

Thanks Alberto,

Your explanation is very clear ...