Foros de discusión
RE: Liferay 6.2 - Can't see images on welcome page before logging in
William Gosse, modificado hace 9 años.
Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
I just installed Liferay 6.2 GA3. All the images on the welcome page do not display until after I log in. The permissions on the images look correct, view-able by guest. any ideas as to what wrong would be a appreciated,
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
It's a known bug unfortunately:
https://issues.liferay.com/browse/LPS-44724
Please see the github commits for fixing it.
https://issues.liferay.com/browse/LPS-44724
Please see the github commits for fixing it.
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
I should add that this is the community edition. Can you be a little more specific about where the fix in github is. Thanks.
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Just clone the liferay 6.2.2-ce-ga3 branch and search for the LPS number, then cherry-pick the commits:
https://github.com/brianchandotcom/liferay-portal/compare/2c5e00cf01...65b3d0bd48
https://github.com/brianchandotcom/liferay-portal/compare/2c5e00cf01...65b3d0bd48
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
This is definitely a new bad behavior introduced in 6.2 GA3 CE. I cannot recreate in 6.2 GA2 CE.
David H Nebinger, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
The bigger problem is that users will be coming back to the forums for the next 6 mos (at least) until the next GA comes out asking wtf...
Where's that darn lcepatchers.org when we need it?
Where's that darn lcepatchers.org when we need it?
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
Do you know of any work around for the issue. It looks like accessing any images in the media repository by guest users is broken. Documents is probably broken as well. Need to try that.
David H Nebinger, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientesWilliam Gosse:
Do you know of any work around for the issue?
Just what Juan said, download the source patch, apply it, and build a custom portal.
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
Ugh! I'll stick with GA2 for now.
Krzysztof Gołębiowski, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 549 Fecha de incorporación: 25/06/11 Mensajes recientes
You can use EXT plugin to apply these patches as well (but the proper solution is as David suggested - build own patched liferay version).
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesWilliam Gosse:
Ugh! I'll stick with GA2 for now.
Hi William. Do you find dificulties in compiling Liferay by yourself? I can find a way for fixing it without that. Let me check it.
David H Nebinger, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientesJuan Gonzalez:
Do you find dificulties in compiling Liferay by yourself?
Oh, hell no.
The last thing we want Juan is everyone out there building their own portal base. I don't think the forums nor the community can handle the questions coming from that particular nightmare.
In fact I think it's a good thing that most people don't know that they could build their own portal, keeps them using plugins the way they should be.
That's why lcepatchers.org was such a great resource. Instead of telling folks to stick with GA2 or manually patching GA3, we could point them at lcepatchers.org and they could get a better version than the current Liferay build.
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
Yes I rather not have to build the portal to fix this issue.
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesWilliam Gosse:
Yes I rather not have to build the portal to fix this issue.
I've found these two workarounds:
- Go to Site Content -> Documents & Media -> Edit root folder permissions -> Ensure that Guest View Permission is enabled -> Save
- Deploy Documents & Media portlet in any page for the site you want to fix the issue
Unfortunately, you have to repeat this operation for each site you want, even for the new sites you create in future.
Maybe I can try to build a hook for this case but it will take time. Are these workarounds enough for your or can you wait until that (unofficial) hook is ready?
Ivano Carrara, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Expert Mensajes: 345 Fecha de incorporación: 3/07/05 Mensajes recientes
Hi all,
I applied this https://github.com/robertoDiaz/liferay-portal/commit/2e1488492cddbc773ee9f1c2990e0506558373ec but the problem is not solved.
The source code is the same of this, right ? https://github.com/brianchandotcom/liferay-portal/compare/2c5e00cf01...65b3d0bd48
Attached here you can find the class patched with the above commit from robertoDiaz
I applied this https://github.com/robertoDiaz/liferay-portal/commit/2e1488492cddbc773ee9f1c2990e0506558373ec but the problem is not solved.
The source code is the same of this, right ? https://github.com/brianchandotcom/liferay-portal/compare/2c5e00cf01...65b3d0bd48
Attached here you can find the class patched with the above commit from robertoDiaz
Archivos adjuntos:
Krzysztof Gołębiowski, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 549 Fecha de incorporación: 25/06/11 Mensajes recientes
Your commit link gives 404 for me :/
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesIvano Carrara:
Hi all,
I applied this https://github.com/robertoDiaz/liferay-portal/commit/2e1488492cddbc773ee9f1c2990e0506558373ec but the problem is not solved.
The source code is the same of this, right ? https://github.com/brianchandotcom/liferay-portal/compare/2c5e00cf01...65b3d0bd48
Attached here you can find the class patched with the above commit from robertoDiaz
Hi Ivano,
you compiled portal-impl? It should be solved by just this commit:
https://github.com/brianchandotcom/liferay-portal/commit/13a9d1adc22c8847294d2478332ef07f5672f5fa
Ivano Carrara, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Expert Mensajes: 345 Fecha de incorporación: 3/07/05 Mensajes recientes
Hi Juan, I just copied the below code in DLPermission.java:
Then I ran ant compile and copied the DLPermission.class in the portal, NOT the entire portal-impl.jar
I attached again the .class to this post.
Actually I solved with your frst workaround making the root of Documents and Media viewable from Guest role.
Please let me know if I can do anything else
Ivano C.
package com.liferay.portlet.documentlibrary.service.permission;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.staging.permission.StagingPermissionUtil;
import com.liferay.portal.model.ResourceConstants;
import com.liferay.portal.security.auth.PrincipalException;
import com.liferay.portal.security.permission.PermissionChecker;
import com.liferay.portal.service.ResourceLocalServiceUtil;
import com.liferay.portal.service.ResourcePermissionLocalServiceUtil;
import com.liferay.portal.util.PortletKeys;
/**
* @author Jorge Ferrer
*/
public class DLPermission {
public static final String RESOURCE_NAME = "com.liferay.portlet.documentlibrary";
public static void check(PermissionChecker permissionChecker, long groupId, String actionId) throws PortalException {
if (!contains(permissionChecker, groupId, actionId)) {
throw new PrincipalException();
}
}
public static boolean contains(PermissionChecker permissionChecker, long groupId, String actionId) {
Boolean hasPermission = StagingPermissionUtil.hasPermission(permissionChecker, groupId, RESOURCE_NAME, groupId, PortletKeys.DOCUMENT_LIBRARY, actionId);
if (hasPermission != null) {
return hasPermission.booleanValue();
}
try {
int count = ResourcePermissionLocalServiceUtil.getResourcePermissionsCount(permissionChecker.getCompanyId(), RESOURCE_NAME, ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(groupId));
if (count == 0) {
ResourceLocalServiceUtil.addResources(permissionChecker.getCompanyId(), groupId, 0, RESOURCE_NAME, groupId, false, true, true);
}
} catch (Exception e) {
if (_log.isWarnEnabled()) {
_log.warn(e, e);
}
}
return permissionChecker.hasPermission(groupId, RESOURCE_NAME, groupId, actionId);
}
private static Log _log = LogFactoryUtil.getLog(DLPermission.class);
}
Then I ran ant compile and copied the DLPermission.class in the portal, NOT the entire portal-impl.jar
I attached again the .class to this post.
Actually I solved with your frst workaround making the root of Documents and Media viewable from Guest role.
Please let me know if I can do anything else
Ivano C.
Archivos adjuntos:
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Hi Ivano,
for doing properly you should:
Then portal-impl will be copied onto your server.
for doing properly you should:
- Shutdown your server
- cd portal-impl/
- ant deploy
Then portal-impl will be copied onto your server.
David H Nebinger, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
This is exactly why I said no we don't want people patching on their own. "Two guys one patch" and it's pretty much just as ugly as the girls with a cup. Imagine if this turned into 100 guys or 1000 guys or ...
If this bug is so serious, then do an interim GA4 sooner rather than later.
If this bug is so serious, then do an interim GA4 sooner rather than later.
Ivano Carrara, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Expert Mensajes: 345 Fecha de incorporación: 3/07/05 Mensajes recientesJuan Gonzalez:
Hi Ivano,
for doing properly you should:
- Shutdown your server
- cd portal-impl/
- ant deploy
Then portal-impl will be copied onto your server.
Hi Juan,
I done ant deploy and the generated portal-impl.jar and portal-service.jar was deployed in the right folders.
I restarted the server but the images from the public web pages are still missing.
The only working turnaround is your, making View-able the root folder to Guest role.
I'm available for any other tests
Ivano C.
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesIvano Carrara:
Juan Gonzalez:Hi Ivano,
for doing properly you should:
- Shutdown your server
- cd portal-impl/
- ant deploy
Then portal-impl will be copied onto your server.
Hi Juan,
I done ant deploy and the generated portal-impl.jar and portal-service.jar was deployed in the right folders.
I restarted the server but the images from the public web pages are still missing.
The only working turnaround is your, making View-able the root folder to Guest role.
I'm available for any other tests
Ivano C.
Hi Ivano, seems there is something wrong in your procedure. Maybe those jars were not deployd in their right folders...Can you check if portal-impl.jar in WEB-INF/lib is the one you compiled?
Ivano Carrara, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Expert Mensajes: 345 Fecha de incorporación: 3/07/05 Mensajes recientesJuan Gonzalez:
Ivano Carrara:Juan Gonzalez:Hi Ivano,
for doing properly you should:
- Shutdown your server
- cd portal-impl/
- ant deploy
Then portal-impl will be copied onto your server.
Hi Juan,
I done ant deploy and the generated portal-impl.jar and portal-service.jar was deployed in the right folders.
I restarted the server but the images from the public web pages are still missing.
The only working turnaround is your, making View-able the root folder to Guest role.
I'm available for any other tests
Ivano C.
Hi Ivano, seems there is something wrong in your procedure. Maybe those jars were not deployd in their right folders...Can you check if portal-impl.jar in WEB-INF/lib is the one you compiled?
Hi Juan, I'm pretty sure about this: in ROOT/WEB-INF/lib there is the new portal-impl.jar with datestamp 04/02/2015 15:49
All other jars have an old date, day of the deploy
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Maybe that thing you did copying the compiled DLPermission.class is messing something.
Really weird, I've checked that solves the issue. You could try in a clean bundle...
Really weird, I've checked that solves the issue. You could try in a clean bundle...
Ivano Carrara, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Expert Mensajes: 345 Fecha de incorporación: 3/07/05 Mensajes recientesJuan Gonzalez:
Maybe that thing you did copying the compiled DLPermission.class is messing something.
Really weird, I've checked that solves the issue. You could try in a clean bundle...
Dear Juan, I'll confirm you that the patch don't resolved the issue.
If you want, I can send you the actual Tomcat bundle with the portal-impl.jar and portal-service.jar compiled and deployed
Thank you for your support !
Ivano C.
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
Ok I just grabbed the DLPermission.class file, contained in the DLPermission.zip file that Ivano attached to this post, and shoved it into the portal_impl.jar file and the issue has gone away. Thanks.
Jack Bakker, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 978 Fecha de incorporación: 3/01/10 Mensajes recientes
So, Liferay v6.2 CE GA3 is only for those who know how to do all this...
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
Without doing this a guest will not be able to see any content being accessed from the repository.
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesJack Bakker:
So, Liferay v6.2 CE GA3 is only for those who know how to do all this...
Hi Jack,
is not that bad. There are two workarounds I've posted weeks ago in this thread.
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
To someone new to using liferay this could be a big stumbling block. They're not going to know to look in the forum for this kind of fix. They're not even going to know somethings actually badly broken. I've been using liferay snce 5.2 at my previous employer. Now I'm trying to bring liferay into a new employer. Stuff like this make that job a little more difficult. Are there any plans for a GA4 release in the near future.
Jack Bakker, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 978 Fecha de incorporación: 3/01/10 Mensajes recientesJuan Gonzalez:
Jack Bakker:So, Liferay v6.2 CE GA3 is only for those who know how to do all this...
is not that bad. There are two workarounds I've posted weeks ago in this thread.
no it's bad, GA4 needed sooner
Jack Bakker, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 978 Fecha de incorporación: 3/01/10 Mensajes recientes
not to bite the hand that feeds me, but this issue is a little more severe than what we might have seen in previous version comparisons between CE and EE
James Falkner, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 1399 Fecha de incorporación: 17/09/10 Mensajes recientesJack Bakker:
Juan Gonzalez:Jack Bakker:So, Liferay v6.2 CE GA3 is only for those who know how to do all this...
is not that bad. There are two workarounds I've posted weeks ago in this thread.
no it's bad, GA4 needed sooner
Hey all, thanks for everyone's continued vocal and constructive feedback - with your help the release team has decided to go ahead and do a GA4 because of this issue in the very near future (no firm date yet but I'm estimating within 1-2 weeks, including test time). User experience (especially for first-timers) is super important, and first impressions can be affected by even small bugs like this, so I'm happy to see GA4 now instead of 6 months from now.
Thanks again! More details later when we have a firm(er) release date.
David H Nebinger, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientesJames Falkner:
with your help the release team has decided to go ahead and do a GA4 because of this issue in the very near future.
Yay! +1 for the release team!
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesDavid H Nebinger:
James Falkner:with your help the release team has decided to go ahead and do a GA4 because of this issue in the very near future.
Yay! +1 for the release team!
Thanks David.
Jack Bakker, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 978 Fecha de incorporación: 3/01/10 Mensajes recientes
Awesome !!!
William Gosse, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Master Mensajes: 533 Fecha de incorporación: 4/07/10 Mensajes recientes
Totally awesome!!!
Gaurav Jain, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Regular Member Mensajes: 145 Fecha de incorporación: 31/01/11 Mensajes recientesWilliam Gosse:
Ok I just grabbed the DLPermission.class file, contained in the DLPermission.zip file that Ivano attached to this post, and shoved it into the portal_impl.jar file and the issue has gone away. Thanks.
I did the same, but its not completely fixed for me.
Strange thing is that for some images its fixed and for some not.
More strangely, sometimes it works just fine for all images and sometimes the second case.
Any clues?
(NB: checking without browser cache everytime)
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Cristiano Gusmeroli, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
New Member Mensajes: 11 Fecha de incorporación: 19/01/15 Mensajes recientesJuan Gonzalez:
New release announcement:
https://www.liferay.com/community/forums/-/message_boards/message/50183847
Thanks Juan.
Probably the patch you're developing already covers the situation I'm going to describe, but it could at least be a good test scenario.
I'm creating Organizations with Sites but no public or private pages.
Administrators add files to the D&M (in the Organization's Home folder), with standard Permission.
If an organization's member wants to access these files, the message "Forbidden" is shown.
If I apply your workaround (as an Admin, I go to Organization's D&M Home folder, I open Permissions and I save them), all works fine.
Unfortunately I have a lot of Organizations.
Best regards,
Cristiano
Juan Gonzalez, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesCristiano Gusmeroli:
If I apply your workaround (as an Admin, I go to Organization's D&M Home folder, I open Permissions and I save them), all works fine.
Unfortunately I have a lot of Organizations.
Hi Cristiano,
I guess I've already pointed out the commit in github which solves the issue.
Anyway, the release should be released in April 9th. Can't you wait for that?
Cristiano Gusmeroli, modificado hace 9 años.
RE: Liferay 6.2 - Can't see images on welcome page before logging in
New Member Mensajes: 11 Fecha de incorporación: 19/01/15 Mensajes recientesJuan Gonzalez:
Cristiano Gusmeroli:
If I apply your workaround (as an Admin, I go to Organization's D&M Home folder, I open Permissions and I save them), all works fine.
Unfortunately I have a lot of Organizations.
Hi Cristiano,
I guess I've already pointed out the commit in github which solves the issue.
Anyway, the release should be released in April 9th. Can't you wait for that?
Hi Juan,
yes I'll wait for the release due in April.
Thanks a lot,
Cristiano