Open
Bug 644934
Opened 14 years ago
Updated 3 years ago
NULL in POST values
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
UNCONFIRMED
People
(Reporter: demgien, Unassigned)
Details
(Keywords: regression, testcase-wanted)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
Hello,
First of all, sorry for my bad english, i'm french..
Yesterday, i've downloaded the newest Firefox, installed it. I run my local website (on a local network), and i found a bug.
When in PHP, i said :
if ($_POST['object'] == "") {$_POST['object'] == "NULL";}
Problem : $_POST['object'] doesn't return "NULL" but return "" (empty string)
The only solution i've found is to backup to Firefox 3.6..
Do you already know about this bug ?
Thanks a lot.
Reproducible: Always
Comment 1•14 years ago
|
||
Please can you attach a testcase URL.
Also, could you see if the issue occurs if using Firefox in safe mode:
http://support.mozilla.com/kb/Safe+Mode
How about with a new, empty testing profile? (Don't install any addons into it)
http://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
Component: Developer Tools → HTML: Form Submission
Keywords: regression
Product: Firefox → Core
QA Contact: developer.tools → form-submission
Version: 4.0 Branch → Trunk
Comment 2•14 years ago
|
||
What do you try to submit? Do you have a testcase?
(In reply to comment #0)
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8)
> Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8)
> Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
>
> Hello,
>
> First of all, sorry for my bad english, i'm french..
>
> Yesterday, i've downloaded the newest Firefox, installed it. I run my local
> website (on a local network), and i found a bug.
>
> When in PHP, i said :
>
> if ($_POST['object'] == "") {$_POST['object'] == "NULL";}
>
> Problem : $_POST['object'] doesn't return "NULL" but return "" (empty string)
> The only solution i've found is to backup to Firefox 3.6..
>
> Do you already know about this bug ?
>
> Thanks a lot.
>
> Reproducible: Always
Sorry iphone wrong touch :p
well, i'll try when i'll return to work on Monday.
Ed : whats a testcase url ?
Mounir : i'm trying to submit INT & Strings. The page worked good with firefox 3.6 so it's not a developement error. In PHP, i said if there's no number for 'object' i assigned NULL value. I've also try the function : empty.
The problem is that i don't know why updating to v4 changed the result.. Coincidence with html5 ?
Comment 5•14 years ago
|
||
I meant do you have a URL where we can test the bug, in order that the regression range can be found?
Also, perhaps try going to about:config and flipping html5.parser.enable to false and seeing if that makes a difference (remember to set it back to true afterwards).
Ed : no i don't have because, as i said up, it's a local website..
I'll this afternoon (if i can) or tomorrow, every solutions you gave.
Comment 7•14 years ago
|
||
Any luck with comment 5?
Does this still occur when using Firefox 4.0.1 and a clean profile?
Sorry i haven't test it yet, 'cause the bug appear in my enterprise and i downgraded to version 3. And i don't have much time to try it with 4.0.1
I'll try it when i can ;) thanks
Comment 9•10 years ago
|
||
Hi Demigen,
Can you please attach a minimal test case, so I can test this on my end?
Also, can you please test this on the latest Firefox release (44.0.2) or latest Nightly (47.0a1, https://nightly.mozilla.org/) and tell me if this still reproduces for you ? When doing this please use a new fresh Firefox profile, maybe also in safe mode (https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems).
Thanks,
Cosmin
Flags: needinfo?(demgien)
| Reporter | ||
Comment 10•10 years ago
|
||
(In reply to Cosmin Muntean [:CosminMCG] from comment #9)
> Hi Demigen,
>
> Can you please attach a minimal test case, so I can test this on my end?
>
> Also, can you please test this on the latest Firefox release (44.0.2) or
> latest Nightly (47.0a1, https://nightly.mozilla.org/) and tell me if this
> still reproduces for you ? When doing this please use a new fresh Firefox
> profile, maybe also in safe mode
> (https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-
> problems).
>
> Thanks,
> Cosmin
Hi Cosmin,
Thank you for your reply since 5 years now :p i still have this prob... tomorrow i will give you a part of code (if its what you want) and i will try with the new version of MF but i don't this it would work because i've test it with v39.9 and this solved my problem. By the way, do you need the error that show Firebug ?
Have a nice day,
Demg
Flags: needinfo?(demgien)
Comment 11•10 years ago
|
||
Hi Demigen,
It would be great if you can provide a part of code and steps to reproduce, so I can test this on my end. Also, it would be helpful if you post the error. What do you mean by v39.9 solved your problem?
Thanks,
Cosmin.
Flags: needinfo?(demgien)
| Reporter | ||
Comment 12•10 years ago
|
||
Hi Cosmin,
I will give you all information tomorrow i completly forgot to it today.
Sorry for v39.9, i forgot a word "didn't"
Have a nice day
Flags: needinfo?(demgien)
| Reporter | ||
Comment 13•10 years ago
|
||
Hi Cosmin,
I will give you all information tomorrow i completly forgot to it today.
Sorry for v39.9, i forgot a word "didn't"
Have a nice day
| Reporter | ||
Comment 14•10 years ago
|
||
Hi Cosmin,
Here's a print screen of the firebug errors : http://hpics.li/e637a3a
And here is my index : https://drive.google.com/file/d/0Bz3f6MHddGokVjZmaWJJNzdKbTA/view?usp=sharing
If you need more info, tell me.
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•10 years ago
|
||
Hi Demigen,
I have tried to test this on my end, with a localhost server using XAMPP and NetBeans. I have run the code with NetBeans but there is an error at line 17 on function "require_once()" (see atachement). If I delete this line, the page loads without error. Then, if I write anything in the input fields and I press the "Rechercer" button I have got this error at line 39 on function "NumberExist()"(see attachment). Please provide a functionally test case in order to test this.
Thanks,
Cosmin.
Flags: needinfo?(demgien)
| Reporter | ||
Comment 18•10 years ago
|
||
Hi Cosmin,
Well "NumberExist()" is just a function to be sure that enter's number is in database, so you can skip this function or simulate it.
Have a nice day,
Demg
Flags: needinfo?(demgien)
| Assignee | ||
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•