plone / plone.app.discussion

General commenting system for Plone content
https://pypi.org/project/plone.app.discussion
16 stars 47 forks source link

Avatars not displayed for anonymous users #96

Open serge73 opened 8 years ago

serge73 commented 8 years ago

If anonymous comments are allowed and enabled to show avatars, avatars are not displayed for anonymous users.

The path to the defaultUser.png wrong

2016-04-23_9-13-42

davilima6 commented 8 years ago

I couldn't confirm the bug. src attrs are indeed like you showed (absolute urls for logged-in users and relative to anonymous) but, while it does hurt caching and should be fixed, Acquisition suceeds in showing the right image. For instance, can't you access http://localhost:8080/Plone/news/defaultUser.png or even http://plone5ux.herokuapp.com/Plone/news/aggregator/defaultUser.png?

serge73 commented 8 years ago

Sorry for my English. I've misunderstood what you wrote. The problem is for the authorized user and anonymous alike.

I use IP for the instance in which added Plone. http://192.168.1.10:8504 - instance http://192.168.1.10:8504/Plone - installed Plone. If a comment from an anonymous user, then the path to the image goes to the root of the instance. But there's nothing there.

I tested with the rewrite module of apache and have used the DNS name. The problem is gone. Don't know what to do, close or not to close this issue...