Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: live627 on March 28th, 2012, 09:48 AM

Title: Not sure what to make of this
Post by: live627 on March 28th, 2012, 09:48 AM
.
Title: Re: Not sure what to make of this
Post by: billy2 on March 28th, 2012, 09:51 AM
Hi Live627,
might be an idea to blur out the file path.
Title: Re: Not sure what to make of this
Post by: live627 on March 28th, 2012, 09:56 AM
Done
Title: Re: Not sure what to make of this
Post by: Arantor on March 28th, 2012, 11:53 AM
That's curious.

For those wondering, that means there's an entry in the log-online table that isn't represented in the session table, which I guess could happen if an entry happens to somehow fall foul of the GC. I wasn't sure that should be possible, but it's also code that's mostly not modified from SMF's (I would have only modified it to cope with wider columns with IPv6 support)
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 01:02 PM
Ah, sorry. I fixe that this morning but forgot to report it. Didn't see this topic.
Problem happened when someone was viewing a gallery item because it postponed an action that needed to be determined earlier.
Anyway.
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 07:59 PM
Okay, let's reuse that topic for another bug... :P

Post this in a message:
[media id=65]

It works.

Now post this (add any parameters, any will do):
[media id=65 type=full]

It adds a closing [ /me] automatically. Not even a [ /media], no... a [ /me].
[ /media] is still wrong because it's a self-closing tag anyway, but 'me'...? Something tells me that it's a bug in the way the me tag is implemented.

Gotta go. Anyone got any idea where I could look to spot this bug...? It can be reproduced simply with the Preview button, or with a Quick Edit.

PS: added spaces before closer slashes because Wedge wouldn't allow me to post otherwise... Gotta love this mismatched tag detector though, even if it 'failed' here, normally it would be in its right to complain ;)
Title: Re: Not sure what to make of this
Post by: Pandos on March 28th, 2012, 08:16 PM
funny :)
Bug is a bit different for me :)
When typing:
Code: [Select]
[media id=65 type=full]


it will end up in:


Code: [Select]
[/s][media id=65 type=full][/color] [/color]
Title: Re: Not sure what to make of this
Post by: Arantor on March 28th, 2012, 08:51 PM
The me tag is implemented through work in the preparser, amongst other things.

Tomorrow I'm out, but Friday I'm going to sit down and start unpicking the current issues with the preparser. The first thing I need to do with both the preparser and the parser are to write test units for them, to validate what correct functionality should be (and then I can automate whether it's behaving as it should)
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 09:14 PM
Pandos -- that doesn't make any sense as a bug. I believe you but can you confirm
 The code you posted above...?
Title: Re: Not sure what to make of this
Post by: Arantor on March 28th, 2012, 09:22 PM
Perhaps it was in WYSIWYG mode?
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 09:29 PM
Even then it doesn't make sense..?
Title: Re: Not sure what to make of this
Post by: Arantor on March 28th, 2012, 09:37 PM
Not superficially, no, but it's entirely possible that something will make sense once it's picked apart.

As I said, Friday, I have nothing on, so I'm going to sit down, write some test cases and start making sense of how both the preparser and main parser work. This has more repercussions than being able to nail down some of the ongoing bugs, but identifying where, potentially, some of the enhancements to performance can be made.
Title: Re: Not sure what to make of this
Post by: Pandos on March 28th, 2012, 09:37 PM
Code: [Select]
[/s][media id=65 type=full][/color][/font][/color]
That's the output from preview with QuickReply.

In WYSISYG Mode it looks like this:
Code: [Select]
[media id=65 type=full][/color]
Title: Re: Not sure what to make of this
Post by: Pandos on March 28th, 2012, 09:44 PM
Above tested with Chrome.

Just tested it in IE 9 in WYSIWYG Mode.

After pressing the preview button the following error occurs:
Quote
The following error or errors occurred while posting this message:
  • The message body was left empty.
Edit:
With Firefox in QuickReply AND WYSIWYG mode it will have the mentioned /me Tag from you

Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 09:45 PM
Okay ill give it a quick look right now.
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 09:51 PM
First of all... A bug that shows up when doing Preview. Undefined variables in JS. It's actually caused by PHP sending a list of strings, but not surrounded by quotes, so they're taken as variable names, which don't exist... Fixed it here. I'm not even sure what this 'broke', because I never noticed any bugs with the previewer... Anyway!
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 09:55 PM
Hmm yes, I think I know the outcome of that JS bug: previewing was no longer refreshed automatically -- only done through going to a new page. Which isn't that important, really... I actually thought it was always done that way ;)

Hey, added the media code, and although preview showed me the 'me' closer, it wasn't in the final posted code!

Posted: March 28th, 2012, 09:54 PM


Okay, it only shows when doing a quick edit or a preview. Not when posting it directly. And since I fixed preview JS, the post box is no longer updated with the 'fixed' code that we see in preview. Which also means that previewing will fix stuff that posting won't.....??!!

PS: the me closer is added at the very end of the post.
Title: Re: Not sure what to make of this
Post by: Nao on March 28th, 2012, 10:54 PM
Fixed!! :)

The bug was mine! In wedit::fixNesting, where I was testing against a list of non-self-closed tags. media is defined as a closed tag, but 'me' isn't, and so it was foolishly looking for [me and found one. I'm upset at me that I forgot to add a \b after the tag list!!
Posted: March 28th, 2012, 10:42 PM

Pandos, can you tell me if it works for you now?
Title: Re: Not sure what to make of this
Post by: live627 on May 31st, 2012, 09:06 PM
Is this fixed now?