掲示板

PermissionChecker issue 6.1

10年前 に Chris Tantalo によって更新されました。

PermissionChecker issue 6.1

Junior Member 投稿: 33 参加年月日: 12/08/21 最新の投稿
When creating a new user and organization, we have a custom login-ext that adds roles and such to a user and organization during account creation. In 6.0, there was need for a super user to allow adding an organization with no parent id, and also to allow other utility functions, like adding the user to the org, etc.

In 6.1, when we call our implementation of PermissionChecker, the following error has occured:

java.lang.NoSuchMethodError: com.liferay.portal.security.permission.PermissionChecker.init(Lcom/liferay/portal/model/User;Z


According to the documention, 6.0 the method call has it defined as
void init(User user, boolean checkGuest)

where as in 6.1 it states it is
void init(User user)


When the changes are made to remove the boolean, the extension does not compile.

When it is left in the code, it compiles fine, but gives the runtime error as stated above.

Any suggestions?
10年前 に Chris Tantalo によって更新されました。

Upgrade headaches

Junior Member 投稿: 33 参加年月日: 12/08/21 最新の投稿
In trying to get all our custom code upgraded to 6.1, I noticed a lot of it just flat out doesn't work run time.
During compile time, most things die due to Liferay API changes. Once those changes have been made and compile finishes with no errors, things just die in run time with various errors.

Are many others having these same pain staking issues when upgrading to Liferay to 6.1?