Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dzmitry Shaparau
Issue with Security Manager
October 30, 2012 7:53 AM
Answer

Dzmitry Shaparau

Rank: New Member

Posts: 8

Join Date: October 5, 2012

Recent Posts

Hi All,

I enabled Security Manager in my plugin and now I see very strange logs such as:
14:43:16,017 WARN [http-bio-8080-exec-71][RuntimeChecker:256] Attempted to access declared members
14:43:16,054 WARN [http-bio-8080-exec-71][ReferenceRegistry:42] Not allowed to get field _service for class ...the name of my service class Util....

The second problem is that in some cases my inter-portlet communication fails with error:
14:49:45,942 WARN [http-bio-8080-exec-74][RuntimeChecker:256] Attempted to access declared members
Oct 30, 2012 2:49:45 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet twostepauthconfig Servlet threw exception
java.lang.SecurityException: Attempted to access declared members
at com.liferay.portal.security.pacl.checker.BaseChecker.throwSecurityException(BaseChecker.java:259)
at com.liferay.portal.security.pacl.checker.RuntimeChecker.checkPermission(RuntimeChecker.java:71)

Could you please advise me which property should I add to liferay-plagin-package.properties?
Dzmitry Shaparau
RE: Issue with Security Manager
October 31, 2012 4:56 AM
Answer

Dzmitry Shaparau

Rank: New Member

Posts: 8

Join Date: October 5, 2012

Recent Posts

I cauth the source of the problem.

It is in usage of org.codehaus.jackson.map.ObjectMapper, i.e.
1ObjectMapper objectMapper = new ObjectMapper();


In this case BaseReflectChecker is called for sun.reflect.annotation.AnnotationType. And it does not support it and returns "false".

Looks like a bug.

Do we have LR people on the forum?
Florencia Gadea
RE: Issue with Security Manager
February 20, 2013 5:56 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 146

Join Date: March 27, 2012

Recent Posts

Hi Dzmitry,

Did you find the solution?

We have the same problem.

Regards,

Flor.
Dzmitry Shaparau
RE: Issue with Security Manager
February 20, 2013 6:06 AM
Answer

Dzmitry Shaparau

Rank: New Member

Posts: 8

Join Date: October 5, 2012

Recent Posts

Hi Florencia,

The issue is solved in 6.2.0 CE
you can track it on https://jira.portletfaces.org/browse/LPS-30769
Florencia Gadea
RE: Issue with Security Manager
February 20, 2013 6:23 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 146

Join Date: March 27, 2012

Recent Posts

Ok, thanks.
James Falkner
RE: Issue with Security Manager
February 20, 2013 7:27 AM
Answer

James Falkner

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1361

Join Date: September 17, 2010

Recent Posts

Will also be in 6.1 CE GA3!
Florencia Gadea
RE: Issue with Security Manager
February 20, 2013 7:39 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 146

Join Date: March 27, 2012

Recent Posts

That's great news James!!

Do you know where I can download the patch for this? (for the CE)

Regards,

Flor.
James Falkner
RE: Issue with Security Manager
February 20, 2013 7:49 AM
Answer

James Falkner

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1361

Join Date: September 17, 2010

Recent Posts

Florencia Gadea:
That's great news James!!

Do you know where I can download the patch for this? (for the CE)

Regards,

Flor.


Here's the patch. But this is against master (6.2.x). If you want this for 6.1 CE you may need to backport it (or wait for GA3).
Florencia Gadea
RE: Issue with Security Manager
February 20, 2013 7:58 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 146

Join Date: March 27, 2012

Recent Posts

Thanks!! I will take a look at it.

What we are doing at Rotterdam CS is applying all possible patches (related to PACL), because that is the only way we know for sure that our plugins will be PACL-error-free in GA3.

Regards,

Flor.
Juan Gonzalez
RE: Issue with Security Manager
February 20, 2013 8:47 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2332

Join Date: October 28, 2008

Recent Posts

Hi James,

Whenever there is a road map (in JIRA) for 6.1.1 GA3, please tell in forums.

Would be great to include issues from here (at least the most important ones):

https://www.lcepatchers.org/downloads

https://github.com/Liferay-Patchers-Community/liferay-portal/tree/6.1.1-ga2-patched

Thanks!!