Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001571 [Quercus] major always 01-17-07 14:13 02-20-07 12:36
Reporter dberry View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.1 Product Version 3.1.0
  Product Build
Summary 0001571: $_POST ARRAY NOT GETTING FILLED
Description On a post, the paramaters are only available via $_REQUEST. $_POST remains empty. Here is a test file:

<html>
<head>
</head>

<body>
<form action="displayParameters.php" name="frmPost" method="POST">
    <fieldset>
        <legend class="legend">Post Test</legend>
        <input type="text" name="txt1" length="10" value="text box 1">
        <input type="text" name="txt2" length="10" value="text box 2">
        <input type="text" name="txt3" length="10" value="text box 3">
        <input type="text" name="txt4" length="10" value="text box 4">
        <input type="submit" name="subSubmit" value="Post" />
    </fieldset>
</form>
<form action="displayParameters.php" name="frmGet" method="get">
    <fieldset>
        <legend class="legend">Get Test</legend>
        <input type="text" name="txt5" length="10" value="text box 5">
        <input type="text" name="txt6" length="10" value="text box 6">
        <input type="text" name="txt7" length="10" value="text box 7">
        <input type="text" name="txt8" length="10" value="text box 8">
        <input type="submit" name="subSubmit" value="Get" />
    </fieldset>
</form>
</body>
</html>
Steps To Reproduce
Additional Information Here is the "displayParameters.php" called by the above test file:

<?php
// This is a test to find out if the $_POST and $_GET are being set correctly

function printParam($value, $key) {
    echo("$key=$value
");
}
?>

<html>
<head>
</head>

<body>

<h1> REQUEST PARAMETERS</h1>

<?php array_walk($_REQUEST, 'printParam'); ?>

<h1> POST PARAMETERS</h1>

<?php array_walk($_POST, 'printParam'); ?>

<h1> GET PARAMETERS</h1>

<?php array_walk($_GET, 'printParam'); ?>

</body>
</html>
Attached Files

- Relationships

- Notes
(0001732)
nam
01-18-07 03:26

Resin 3.1.0
OS: Windows

Issue was not reproducible. Please try the official 3.1.0 release and give system configuration if issue still exists.


test case output on POST:
--------------------------
POST PARAMETERS
txt1=text box 1 txt2=text box 2 txt3=text box 3 txt4=text box 4 subSubmit=Post
 
(0001762)
nam
02-13-07 11:20
edited on: 02-20-07 12:35

$_POST data lost only when a servlet filter reads in request parameters

 
(0001763)
nam
02-20-07 12:36

php/081d
 

- Issue History
Date Modified Username Field Change
01-17-07 14:13 dberry New Issue
01-18-07 03:21 nam Status new => assigned
01-18-07 03:21 nam Assigned To  => nam
01-18-07 03:26 nam Note Added: 0001732
01-18-07 03:26 nam Status assigned => feedback
02-13-07 11:20 nam Note Added: 0001762
02-13-07 11:20 nam Status feedback => assigned
02-20-07 12:35 nam Note Edited: 0001762
02-20-07 12:36 nam Status assigned => closed
02-20-07 12:36 nam Note Added: 0001763
02-20-07 12:36 nam Resolution open => fixed
02-20-07 12:36 nam Fixed in Version  => 3.1.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker