This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JForum and the fly likes smileys not rendering after 2.1.8 upgrade Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "smileys not rendering after 2.1.8 upgrade" Watch "smileys not rendering after 2.1.8 upgrade" New topic
Author

smileys not rendering after 2.1.8 upgrade

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm using a very slightly customized version. I upgraded from 2.1.7b3 to 2.1.8 and now the smileys render as



The emoticons apear fine when composing a new message, but do not appear in the preview or when the message is posted.

Any thoughts on are appreciated?
[originally posted on jforum.net by skipwalker]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I found the solution to my problem. I put a bunch of system outs in the PostCommon and SafeHtml to trace where the img src was being removed. It turns out it was being removed by SafeHtml.ensureAllAttributesAreSafe().

The code was considering the "src" attribute in the img tag for the smilie unsafe as it is a relative link rather than a fully qualified url. This was apparently due to the fact that the configuration preference "html.links.allow.relative" is false by default.




Setting this value to true in SystemGlobals.properties solved my problem.


[originally posted on jforum.net by skipwalker]
 
Consider Paul's rocket mass heater.
 
subject: smileys not rendering after 2.1.8 upgrade
 
Similar Threads
How to trap an OutOfMemoryError in making Xml Dom
Calling Javascript functions from an applet
priorityQuery problem
Email Notifications Not Sent, But Test Email Works
Why use Class.forName() to load driver