FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Mark all unread
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Mark all unread [message #15610] Tue, 23 December 2003 14:35 Go to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
Try this sequence:

1. Refresh the home page. Assuming you have some new messages, proceed with #2.

2. Click on the topic with new messages, then a thread to read them.

3. Hit your browser's Back button twice, to return to the Home page without reloading it. It still shows the topic you just read as "unread", which is to be expected.

4. Click on the "Mark all messages read" link.

5. FUD now displays a series of messages, possibly even including the ones you just read.

I would expect the "mark all" option to always just refresh the home page, showing all the topics as completely read. Why does it try to show messages at all? This seems counterintuitive to me.

[Edit: fixed a typo]

[Updated on: Tue, 23 December 2003 14:38]

Report message to a moderator

Re: Mark all unread [message #15611 is a reply to message #15610] Tue, 23 December 2003 16:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The only way this could've happened is if your browser ignored the no-cache headers when you clicked back. Consequently the forum thinks that the previous URL was the topic display where you get redirected after clicking on the "mark all read" link.

FUDforum Core Developer
Re: Mark all unread [message #15612 is a reply to message #15611] Tue, 23 December 2003 17:03 Go to previous messageGo to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
Yes, that might explain it. Safari has an annoying habit of doing this with some sites. I noticed that FUD is sending the response header:

Expires: Mon, 21 Jan 1980 06:01:01 GMT

I usually use:

Expires: 0

and it seems to work with Safari. Maybe this would help to avoid this bug in Safari?
Re: Mark all unread [message #15613 is a reply to message #15612] Tue, 23 December 2003 17:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Expires 0 may work in Safari but looks like a rather invalid header, According to the documentation I've read the Expires header should contain a valid date string. I would think that some 23 years in the past is more then adequate Wink.

Changing it to 0 may fix it for Safari, but break things for other browsers. I'd recommend reporting this bug to Safari developers.

I should mention that Konqueror 3.2 (on who's engine Safari is based) does not have this problem.


FUDforum Core Developer
Re: Mark all unread [message #15803 is a reply to message #15613] Mon, 05 January 2004 15:29 Go to previous messageGo to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
Ilia wrote on Tue, 23 December 2003 12:07

Expires 0 may work in Safari but looks like a rather invalid header, According to the documentation I've read the Expires header should contain a valid date string. I would think that some 23 years in the past is more then adequate Wink.

Changing it to 0 may fix it for Safari, but break things for other browsers. I'd recommend reporting this bug to Safari developers.

I should mention that Konqueror 3.2 (on who's engine Safari is based) does not have this problem.

Actually, RFC 1945 says:
Quote:

Note: Applications are encouraged to be tolerant of bad or misinformed implementations of the Expires header. A value of zero (0) or an invalid date format should be considered equivalent to an "expires immediately." Although these values are not legitimate for HTTP/1.0, a robust implementation is always desirable.

So, while it's technically incorrect to use just "0", a browser is expected to support it, and all I've ever used do.

In Safari's case, it seems that this is all that is supported. Yes, that's a bug, but of course getting a major developer to fix anything this tiny is often impossible.
Re: Mark all unread [message #15807 is a reply to message #15803] Mon, 05 January 2004 15:57 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
As you've said "these values are not legitimate for HTTP/1.0".
So, browsers that for whatever reason use HTTP/1.0 will receive broken headers. The bug is in KTHML and should be reported to the KDE developers, is it up to them to address this issue.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ranks manager problems
Next Topic: Optimize theme
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 00:51:12 GMT 2024

Total time taken to generate the page: 0.02904 seconds