• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML on edit post

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I tried checking Jira but the link appears to be down. Also tried searching here and couldn't find something, though if this has been discussed would appreciate being pointed in the right directory and I apologize for the dupe if it is.

Currently seeing a problem where, when a post is edited using the 'double click in text area' and then the user updates without going to the 'edit' page, they are having HTML printed out on the page as text rather than displaying as HTML. This is also breaking posts that are okay which suddenly just start showing all their HTML tags.

Wondering if anyone else is having this problem, seems far too obvious for others to not have caught it.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hrm...i am getting on some quick replies as well...really absurd..

seeing it fairly often with posts that are simply like this one...text, line breaks, text

the line breaks show up as html...if i use the 'edit' button and then resave its fine.

the only thing i've changed recently is turning off the ability for people to have URL based avatars.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it happening with all browsers?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:Is it happening with all browsers?

Rafael



Yeah, IE and FF both seeing the problem. Haven't dug into Safari or Opera as I assume same response as FF and don't have a wide user base there.

It's not very consistant, which is odd, but if it happens in a post once I can replicate it everytime by using the double click to edit it to recreate it, and then actual edit button to fix it.

Where it seems really inconsistant is when it happens on new quick replies, cannot consistantly replicate it there.

That said, it's happening often enough to be very noticable.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some version info:
Tomcat 6.0.14
jre 1.5.0_13
postgres 8.3

Been using the forum for a couple months now without a problem, this just popped up yesterday for the first time.

I made a couple minor changes recently:
Extending posts per page to 30, and not accepting Avatars via URl.

I tried flipping those back just in case but that didn't resolve it.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strange. And only with the inline edit option? If true, one temporary option would be to disable it (just remove the javascript code from the template)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:Strange. And only with the inline edit option? If true, one temporary option would be to disable it (just remove the javascript code from the template)

Rafael



Sadly no, also seeing it on quick replies inconsistantly. The inline editing allows for easy recreation of it as once it happens, the inline editing will always repeat it if it is going to happen. It only seems to happen with the inline editing / quick replies though (which I may disable if this becomes a longer term issue, would rather leave the problem there to monitor and help track it down though). If it was just the inline editing I would disable it without a second thought. Most people don't seem to even know that exists.

As it seems I am the only one seeing this I would be happy to demo this to you if you want, or if there is any specific tests that you think might narrow it down I am happy to help. If you'd like to see for yourself from the client perspective send me a PM and I'll get you an account and details so you can play with it a bit for yourself. It is an oddity.

I have been pretty busy so haven't had a chance to run a range of tests to track it down yet but will this weekned if it isn't narrowed down before then.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sadly got very sick over the weekend and didn't have time to run serious test to try track this down. I know it is happening as time goes on and is showing up 'quote' responses as well though I haven't seen it with initial post, and 'edit' still appears to fix it.

Any ideas anyone might have on this one, or on a good way to track it would be really appreciated.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would say to install a fresh copy of JForum in the same server, in another url / port, and test it. If it works, copy the database to this new install, and see what happens. Then check the settings of each forum, the permissions etc etc.

Sorry for not having an anwser for why this happens.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:I would say to install a fresh copy of JForum in the same server, in another url / port, and test it. If it works, copy the database to this new install, and see what happens. Then check the settings of each forum, the permissions etc etc.

Sorry for not having an anwser for why this happens.

Rafael



No problem. If I'm the only one it's happening to then I can't expect you to have the answers =P

Will try the second instance out. Been really short on time recently so haven't had the time to invest into anything.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tarpan wrote:

Rafael Steil wrote:Strange. And only with the inline edit option? If true, one temporary option would be to disable it (just remove the javascript code from the template)

Rafael



Sadly no, also seeing it on quick replies inconsistantly. The inline editing allows for easy recreation of it as once it happens, the inline editing will always repeat it if it is going to happen. It only seems to happen with the inline editing / quick replies though (which I may disable if this becomes a longer term issue, would rather leave the problem there to monitor and help track it down though). If it was just the inline editing I would disable it without a second thought. Most people don't seem to even know that exists.

As it seems I am the only one seeing this I would be happy to demo this to you if you want, or if there is any specific tests that you think might narrow it down I am happy to help. If you'd like to see for yourself from the client perspective send me a PM and I'll get you an account and details so you can play with it a bit for yourself. It is an oddity.

I have been pretty busy so haven't had a chance to run a range of tests to track it down yet but will this weekned if it isn't narrowed down before then.


[originally posted on jforum.net by johnnyhg]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also have this problem

When I login and do first post (quick reply or just post) it always shows tags like br.
If I do second post it looks ok. But previous post continue to show tags. I need to clear cache and only after that it renders fine.
After that if I do logout and login again first post would show tags and second post would work ok.

I use resin... (I don't know if it is matters)
[originally posted on jforum.net by blib]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
up
[originally posted on jforum.net by blib]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Long time no post on this...crazy summer and I've just made people put with it and had mods chasing peoples posts and fixing them.

Finally got around to doing this yesterday and tried installing component by component...the last thing I reinstalled the templates and am not getting the problem yet...will keep posted on if this alone was enough to resolve it permenantly...but will also do some diffs nad try to narrow this down to what specific change caused the problem...its been awhile I am not even sure what all changes were made!
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nope, not fixed =/
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am seeing this behavior too and can consistently provoke it by quoting a post. Afterwards saving the new post it shows HTML tags. However, once edited everything shows fine.

I did not have the time yet to poke any further but I guess it may be releated to cache issues.

\Fabian

--
Running on tomcat 5.5.x, Java 1.6 and Apache2 with mod_prox
Browsers FF2/3 (Win and Mac) and Safari (Mac)
[originally posted on jforum.net by hfcoma]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I at least feel better that I am not the only one seeing it.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
We have recently the same problem. Have you go any solution for this. Seeing the posts with

all over the place.
We never had problems before it just started recently.
[originally posted on jforum.net by palko]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

palko wrote:Hi guys
We have recently the same problem. Have you go any solution for this. Seeing the posts with

all over the place.
We never had problems before it just started recently.



Unfortunately no, I haven't been able to find a solution.

What kind of conifguration are you using? Perhaps we can narrow it down a bit.

I have been trying to find the time to try to dig around but I have just been pegged for time non-stop for the last couple months so have only had small chunks of time to poke around at this enough to figure out a final answer.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i solved it by editing page for posts edit (create). I switched disable html in posts checkbox off by default and i don't have problems any more.
[originally posted on jforum.net by palko]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hm. That made it easy to figure out what the problem is. Interesting. You didn't quite solve it, and I don't know if I've totally figured it out either.

Basically here is what is happening from what I can see:

If I make a post with HTML disabled it is fine.
If I reply to someone elses post that had HTML disabled it will set my default to HTML disabled (despite it normally being enabled) and then it produces the problem.

I believe it is still wrong though. With HTML disabled it shouldn't show all the HTML and other blocks such as URL and QUOTE tags which is what it is doing now.
[originally posted on jforum.net by Tarpan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Forcing everyones default setting to be posting with HTML didn't solve the problem but it does seem to make it less common...but still seeing it =/
[originally posted on jforum.net by Tarpan]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic