Foren
auto-generated PACL property does not work!!!
Dmitry Kovalev, geändert vor 7 Jahren.
auto-generated PACL property does not work!!!
New Member Beiträge: 12 Beitrittsdatum: 01.04.15 Neueste Beiträge
Hi All
I have a liferay 6.2+tomcat bundle on Windows server and I'm generating PACL for my application.
I start with security-manager-enabled=generate and I see in a log:
01:33:02,653 DEBUG [ajp-bio-8009-exec-8][GeneratingPACLPolicy:230] ...... generated authorization property {key=security-manager-properties-read, value=*}
I see in .pacl-policy file:
.....
security-manager-properties-read=\
*,\
.....,\
.....
.....
I add that string to a liferay-plugin-package.properties file and redeploy my app.
And liferay portal doesn't see that config!!
String "debug.... generating authorization policy..." appears again, and if i use security-manager-enabled=true option, portal generates an error.
Whats wrong? Please, help me. I've spend huge amount of time in a hard battle with a liferay security and I'm absolutely exhausted.
I have a liferay 6.2+tomcat bundle on Windows server and I'm generating PACL for my application.
I start with security-manager-enabled=generate and I see in a log:
01:33:02,653 DEBUG [ajp-bio-8009-exec-8][GeneratingPACLPolicy:230] ...... generated authorization property {key=security-manager-properties-read, value=*}
I see in .pacl-policy file:
.....
security-manager-properties-read=\
*,\
.....,\
.....
.....
I add that string to a liferay-plugin-package.properties file and redeploy my app.
And liferay portal doesn't see that config!!
String "debug.... generating authorization policy..." appears again, and if i use security-manager-enabled=true option, portal generates an error.
Whats wrong? Please, help me. I've spend huge amount of time in a hard battle with a liferay security and I'm absolutely exhausted.
Dmitry Kovalev, geändert vor 7 Jahren.
RE: auto-generated PACL property does not work!!!
New Member Beiträge: 12 Beitrittsdatum: 01.04.15 Neueste Beiträge
This is the same situation three years ago
https://web.liferay.com/web/developer/marketplace/forums/-/message_boards/message/37579909
https://web.liferay.com/web/developer/marketplace/forums/-/message_boards/message/37579909
Dmitry Kovalev, geändert vor 7 Jahren.
RE: auto-generated PACL property does not work!!!
New Member Beiträge: 12 Beitrittsdatum: 01.04.15 Neueste Beiträge
I've solve it.
In a debugger the real error was: ..... java.util.PropertyPermission "*", "read, write"
but liferay's "generate" option didn't produce -write property in *.pacl-policy file
Please, be careful
In a debugger the real error was: ..... java.util.PropertyPermission "*", "read, write"
but liferay's "generate" option didn't produce -write property in *.pacl-policy file
Please, be careful
Olaf Kock, geändert vor 7 Jahren.
RE: auto-generated PACL property does not work!!!
Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste BeiträgeDmitry Kovalev:
In a debugger the real error was: ..... java.util.PropertyPermission "*", "read, write"
but liferay's "generate" option didn't produce -write property in *.pacl-policy file
Thank you for reporting back - this is one of the issues that are hard to pinpoint in forums without actual code and debugging effort.