View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019464 | mantisbt | db oracle | public | 2015-03-03 05:50 | 2017-10-04 05:14 |
Reporter | Jo | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Product Version | 1.3.0-beta.1 | ||||
Summary | 0019464: update user or news info occurs error | ||||
Description | error msg for update user if checkbox (protected) is checked, update action would work fine. update news' error msg: The case is the same. | ||||
Tags | No tags attached. | ||||
related to | 0023372 | new | error updating boolean fields |
Thanks for the report, I'll look into it (as time allows). What version of Mantis is this on ? |
|
mantis version: 1.3.0-beta.1 I added an note in the issue (0019463:0049128) EDIT: you can link to bugnotes using the '~' symbol and the bugnote id. |
|
Additional information: checkbox is checked will lead to different results. (insert/update will be fine if checked) |
|
Hi, dregad I tried to modify the php file named "manage_user_update.php" .
line 128:
the user update can be fine if protected checkbox is not checked. |
|
gpc_get_bool() already checks if $_POST is set, and will assign a default of 'false' if not.
So it seems you're just changing the data type of $c_protected. This leads me to believe that there could be an issue with handling of booleans for the oci8 driver. In any case, even though it might work around your issue for now, I don't think the proposed change is the proper, permanent fix for it. I need to check in more detail, but I don't have access to an Oracle environment at the moment. In the meanwhile, it would be helpful if you could report here what the actual value of $f_protected is, right after line 67 (including data type, e.g. via var_dump) for both check/unchecked states and with unmodified MantisBT code. |
|
log $f_protected while unchecked, the result is null. |
|
oci8 version is 2.0.8 |
|
How can this be ? gpc_get_bool() NEVER returns 'null'... Are you sure you're using an unmodified version of gpc_api.php ? |
|
I need to explain the null value is "nothing", not really return 'null' character. |
|