Shoutbox

PM inbox/system bug - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: PM inbox/system bug (/showthread.php?tid=35791)

PM inbox/system bug by KeyStorm on 12-19-2004 at 01:35 AM

This bug has been there for a whole while, but I thought I should report it for once:

when you send a PM you are directly returned to the PM inbox. If you refresh that page (if, sy you just got another PM) it asks you to resend the last POSTed data. If you do, the last sent PM gets resent.

It's quite annoying, and it should work like when you post and refresh, where it neatly refreshes without resending the post.

Is the redirection-notice not working well in PMs or what's the problem?


RE: PM inbox/system bug by Hank on 12-19-2004 at 01:41 AM

propably better off to go over to mybb to see a List of fixes etc  , but iv'e noticed this Bug to, its rather annoying, 


RE: PM inbox/system bug by KeyStorm on 12-19-2004 at 01:45 AM

This can't be called myBB anymore, I seriously doubt WDZ will ever be updating the version, since he has done so many modifications to it, that it's better to stay with this version than to have to port all mods over to a new one (with all porting problems that may appear).

So, the fastest solution is to ask WDZ to fix it, it's not a big deal of a bug and not a big deal of coding, so I don't see any inconvenience. :P

:cheesy:


RE: PM inbox/system bug by Hank on 12-19-2004 at 01:49 AM

see if he'll fix it :) , but  have to agree,  cant really call it MyBB anymore, , unless  the boards were to change to a different Board an i dont think thats likely to happen, 


RE: PM inbox/system bug by WDZ on 12-19-2004 at 04:25 AM

I don't know why that bug would exist... the PM send code uses the same header redirect that the rest of the board uses. Nothing should be sent via POST when the inbox is loaded. :s

I'll do some debugging to see what's up... :dodgy:

Edit: I can't reproduce it in Opera... I have an idea what's causing it though, and I consider it to be a caching-related bug in IE and maybe Mozilla. Let me know if the problem still occurs now.


RE: PM inbox/system bug by surfichris on 12-19-2004 at 06:30 AM

It only happens in Firefox and Mozilla browsers. It isn't a MyBB problem, although MyBB could correct it.

It's due to when data is posted the url is private.php, which is the same as the folder for the inbox meaning that it will not think the URL is any different.


RE: PM inbox/system bug by kangie on 12-21-2004 at 05:42 AM

just out of interest, why shouldnt it be called myBB anymore?
and i get that prob all the time :/ just never realised it was resending the pm ;P *apologises to everyone shes ever PMed*


RE: PM inbox/system bug by L. Coyote on 12-21-2004 at 06:18 AM

quote:
Originally posted by Chris Boulton
n data is posted the url is privat
:s This happened when I clicked on q. quote

However, clicking again resulted in the correct quote...
quote:
Originally posted by Chris Boulton
It only happens in Firefox and Mozilla browsers. It isn't a MyBB problem, although MyBB could correct it.

It's due to when data is posted the url is private.php, which is the same as the folder for the inbox meaning that it will not think the URL is any different.

Ok, I didn't understand something: it only happens when you get a PM after you sent one?

Because I sent a PM today, didn't get one right after that, and I pressed F5 and nothing happened, no POST data. And I use Firefox.
RE: PM inbox/system bug by WDZ on 12-21-2004 at 06:31 AM

quote:
Originally posted by UglyBoy
This happened when I clicked on q. quote
You probably made a selection like this (maybe by accident):

[Image: attachment.php?pid=350054]

quote:
Originally posted by UglyBoy
Because I sent a PM today, didn't get one right after that, and I pressed F5 and nothing happened, no POST data. And I use Firefox.
That's good... it probably means that the bug is fixed. :p
RE: PM inbox/system bug by L. Coyote on 12-21-2004 at 06:41 AM

quote:
Originally posted by WDZ
You probably made a selection like this (maybe by accident)
:| Can't believe I didn't know that... It's a very good thing, now I'll be able to quote without having to delete what I didn't want to quote :P
(btw, sorry for the off-topic)

quote:
Originally posted by WDZ
That's good... it probably means that the bug is fixed.
Or maybe it's because I don't save cache? :o Don't know about browsers. :P
RE: PM inbox/system bug by surfichris on 12-21-2004 at 07:17 AM

quote:
Originally posted by kangie
just out of interest, why shouldnt it be called myBB anymore?
It can be. I've just started using capitalisation for the M because it does (apparently) look more professional and I like it like that.

Okay, just to try and explain why this happens in Firefox.

The URL for your inbox folder of pm's is private.php.

When you send a PM it is doing a POST to the web server where the form fields are posted and hidden from the URL. A get request would show the form fields in the URL it was submitting to.

Firefox obviously determines back/refresh/forward links by the URL in the address bar, which for the inbox and the sending POST would simply be 'private.php'. Therefore firefox thinks when you are redirected to your inbox after sending a PM that it is actually just the same page.

It's hard to grasp, but i'm fairly sure thats what the issue is as you will notice it also does it to some of the usercp pages when taken back to your summary page and it is the only thing which makes sense.
RE: PM inbox/system bug by KeyStorm on 12-21-2004 at 07:55 AM

Oh, ic. That's dodgy from Mozilla/Firefox, tbh.
Is there maybe something in the http headers that can be done to avoid this? :-/


RE: PM inbox/system bug by WDZ on 12-22-2004 at 04:15 AM

The best and simplest solution I know of is to just make sure the POST request URL is different from the GET URL. In this case, I simply added a question mark (?) after private.php.