Return to Jive Software

Skip navigation
3,724 Views 36 Replies Last post: Mar 16, 2010 3:24 AM by dbeutner RSS
nilsbolsen Intermediate 560 posts since
Apr 10, 2008
Currently Being Moderated

Oct 29, 2009 7:59 AM

"View as PDF" does not include avatars

hi,

 

I am troubleshooting some problem where "View as PDF" sometimes does not work for discussions. Right now I am not at a point where I can surely reproduce that problem. Sometimes PDF get generated other times not.

 

 

But I found another problem with as PDFs that get generated. The avatar images do not show up in the PDF.

 

This is a screenshot of the thread:

Firefox.png

And this is the PDF (it is also attached).

Preview1.png

 

 

These are our customized FTLs:

/template/decorator/default/header-favicon.ftl                   
/template/decorator/default/page-footer.ftl                   
/template/global/custom-css.ftl                   
/template/global/include/view-profile-friends-list.ftl                   
/template/global/people.ftl                   
/template/global/unauth.ftl                   
/template/global/user-bar.ftl                   
/template/global/view-profile.ftl                   
/template/socialgroup/socialgroup-form.ftl

 

I attached the log files catalina.out clearspace.log.

 


best regards,

Nils

Attachments:
corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Oct 29, 2009 9:12 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hi Nils,

 

Can you send me your logs as they are now (after PDF stopped working altogether)?  Are you using Weblogic?  Another customer has run into a similar issue and it was caused by a misconfiguration with Weblogic.  Are you still using Clearspace 2.5.17?

 

Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Oct 29, 2009 11:50 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hey Nils,

 

Can you send me all of your theme files.  This is located in jiveHome/themes.  The Admin Console home page will list the location of your jiveHome directory.  I would like to load up your theme locally so that I can isolate whether or not this issue is related to your theme.


Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Oct 30, 2009 8:26 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hey Nils,

 

Sounds good.  I'll load up your customizations and let you know what I find.

 

Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Oct 30, 2009 10:35 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hi Nils,

 

I have confirmed that this is not related to your theme.  Does this happen with all content or just discussions?  Is it all discussions, or just some discussions?


Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Nov 2, 2009 11:30 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hey Nils,

 

I was able to reproduce this issue by modifying my jiveURL system property.  In the Admin Console, go to System > Settings > System Properties and look for jiveURL.  Please verify that this is exactly as it appears in your URL bar, without a trailing slash.  For example,

http://www.lufthansa.de/online/community

 

Let me know if this helps.

 

Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Nov 3, 2009 10:01 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hi Nils,

 

The jiveURL does not appear to be the problem.  Can you see if the server can access itself using that URL?  Try performing a wget from the server:

wget https://eteaming.staging.ebase.dlh.de

 

I will see if the issue could be related to using https.

 

Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Nov 10, 2009 4:14 PM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hi Nils,

 

I have filed a bug for this issue.  The bug ID is CS-17471.  The filter that is set up to handle converting the document to prepare it for converting to PDF does not handle avatar images.  Let me know if you have more questions about this.

 

Thanks,

Cory

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Dec 9, 2009 10:41 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hey Nils,

 

An engineer is looking into this issue today.

 

Thanks,

Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Feb 1, 2010 6:50 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

The avatars are now rendered for threads; but the result is ugly, the text is printed over the picture. This seems to be a beta-status "solution"... :-(

 

For blogposts and comments on these still no avatars are rendered within the PDF (but maybe this works as designed - at least there is no empty space on the PDF where one would expect the avatar to be rendered).

 

Regards

Detlev

Attachments:
corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Feb 1, 2010 5:01 PM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

 

The avatar in your profile is taller than the standard avatar size, which is causing this problem.  I tried testing this locally on a 2.5.18 install, but the image I uploaded was simply made shorter and skinner rather than tall and just as wide.  Did you sync your profile photos via LDAP?

 

Thanks,

COry

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Feb 2, 2010 9:04 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hi Nils,

 

The avatar for my account shown in the pdf for this case is squished because I uploaded it in an old version of Jivespace when there was a bug in our image cropper.  This bug squished newly uploaded avatar photos.  Your avatar and Detlev's are actually the same size.  It just appears that Detlev's is bigger because of the white background.  As for the PDF in your instance, will you see if you can reproduce this by uploading a tall avatar photo in a test account and viewing a PDF in a thread for that account.  It's possible that the avatar in the PDF you sent is from an older version of Clearspace when we did not implement proper restrictions on avatar photos.

 

Thanks,

Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Feb 4, 2010 7:47 AM in response to: Nils Bolsen
Re: "View as PDF" does not include avatars

Hi Cory,

 

I downloaded Boris' Avatar and uploaded it again for my own AdminUser. Then I answered the thread by myself and recreated the PDF.

 

The problem stays the same.

 

I have attached the uploaded avatar image (bmp) and the new PDF.

 

Best regards

Detlev

Attachments:
corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Feb 4, 2010 10:26 AM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

This is certainly a strange issue.  I tried this same test locally on a vanilla install of Clearspace 2.5.19 with the same photo that you provided and I got different results.  What plugins do you have installed?  Would you be willing to temporarily remove these plugins and retest this issue so that we can rule out that possibility that this is caused by plugins?
Thanks,
Cory
dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Feb 15, 2010 10:14 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

> Would you be willing to temporarily remove these plugins and retest this issue so that we can rule out that possibility that this is caused by plugins?
Hm, the plugins we use are:
- SSO (and Terms&Conds) plugin
- eMail filter plugin (tries to filter auto-reply mails)
- activity-hide-plugin plugin (hides polls from the activity overview for some user)

I can't see where these should influence the picture created within the PDF...?!?!

 

So... Now I have tested the same document on out 4.0.3 test upgrade installation, where until today no plugins are deployed. No difference, still the same problem.

 

So, plugin influence can be rules out...

 

Best regards

Detlev

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Feb 15, 2010 11:15 AM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

 

So... Now I have tested the same document on out 4.0.3 test upgrade installation, where until today no plugins are deployed. No difference, still the same problem.

This is strange.  In SBS 4.0, we force users to crop their avatar to fit to the proper dimensions.

screenshot3.png

Are you not getting this page when you attempt to upload an avatar image?

 

Thanks,

Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Feb 25, 2010 7:13 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

I was not talking about uploading the image on 4.0.3, but just using the picture which was uploaded into 2.5.x.

 

The PDF created with this picture has got the same problem as in 2.5.x.

 

Best regards

Detlev

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Feb 25, 2010 9:01 AM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

 

I think the issue comes down to a bad image stored in the database for that user (from an older version).  In 2.5.21 or 4.0.3, if you re-upload this image to an account, then attempt to View as PDF for a message that has that account, do you still see this issue?

 

Thanks,

Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Feb 26, 2010 9:27 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

It is the same result as it has been with 2.5.19 (tested with 2.5.21 now). If 4.0.3 needs a crop, OK - but:

 

The problem obviously is that some images, which are already in the system, do have this issue. We don't have any clue how many of the uploaded avatars lead to this issue. So we need to find the root cause for this issue and after that, a way to resolve this for all affected avatars images.

 

Best regards

Detlev

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Mar 1, 2010 9:34 AM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hey Detlev,

 

Do you have any idea what version that user may have uploaded the avatar image in?  It would help if I could reproduce this issue on my end.

 

Thanks,
Cory

 

Message was edited by: corygagliardi

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Mar 1, 2010 4:40 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

??? We have discussed this now for some rounds, and I uploaded the downloaded Boris avatar for my own user, so why should it matter with which version Boris has uploaded his avatar???

 

And: "video"???

 

Regards

Detlev

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Mar 1, 2010 9:38 AM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

 

I'm sorry for the confusion; I meant to write avatar image instead of video.  I would like to know what version Boris may have uploaded his avatar image in because I still cannot reproduce this issue.  Without being able to reproduce the issue, I cannot really tell what is going wrong and how to fix it.  We have seen that any images that are uploaded in recent versions does not have this issue.  It is likely that this avatar image was uploaded in a previous version which allowed it to get stored incorrectly.  If I can reproduce this issue locally, I may be able to find some kind of work around to get this issue resolved.

 

Thanks,
Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Mar 1, 2010 10:00 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

We had this now really several times, too often: In four out of my five answers from 04.02.2010 on...

 

I can upload the image in any version in 2.5.x and reproduce it.

 

Even if this might be dependent on somehting "special" on our side (theme, ...), it is obviously not dependent on the version someone has uploaded the image.

 

> Without being able to reproduce the issue, I cannot really tell what is going wrong and how to fix it.

 

I have not written the software, but I think it is quite obvious in which areas at least something might go wrong:

 

- uploading the image (if it should be cropped automatically at some place or whatever)

- using the image within the PDF (creating the PDF)

 

If this is code-related - you might instruct us which logger you want to get raised to check what's going in behind the scenes. If the logging is not sufficient, we wouldn't have any problem if you pass one (or two, three, ...) classes with some special extra logging, which we could replace on our STAGING system immediately.

 

Our theme you find in your SVN, if needed (this should be known).

 

Regards

Detlev

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Mar 10, 2010 8:04 PM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

 

At the beginning of this case, avatar images were not working.  This case was previously closed because we had filed a bug against this problem.  What changes took place on your end to get these avatar images working?

Thanks,
Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Mar 15, 2010 10:33 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

We have updated CS. Then we checked if the promised fix works. And then we saw: Working, but not correctly.

 

We are running 2.5.21 at the moment (and will probably stay on this until we upgrade to 4.0.x). I just did it again: Uploaded the http://www.jivesoftware.com/jivespace/servlet/JiveServlet/download/338332-43775/boris.bmp as my avatar, created a PDF out of a discussion, problem stays the same.

corygagliardi Jive Employee 4,944 posts since
Apr 23, 2009
Currently Being Moderated
Mar 15, 2010 8:06 PM in response to: Detlev Beutner
Re: "View as PDF" does not include avatars

Hi Detlev,

 

Perhaps this is a browser related issues.  What web browser are you uploading the avatar photo in?

 

Thanks,

Cory

dbeutner Intermediate 585 posts since
Apr 14, 2008
Currently Being Moderated
Mar 16, 2010 3:24 AM in response to: corygagliardi
Re: "View as PDF" does not include avatars

Hi Cory,

 

As I'm primarily an SAP developer, "on my computer I only let water and IE7" (based on a german advertizing "on my skin I only let water and CD" ;-)).

 

Best regards

Detlev

More Like This

  • Retrieving data ...

Bookmarked By (0)

Case Product Issues

Loading Jira issues

Loading related product issues for this case
To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.