Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 3.0.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Attempting to invoke AppModel::systemEncrypt() via the Encryption model results in a Failed to retrieve the default value error. This is a result of the following lines in /app/controllers/api.php:
$method_params[$param->name] = $param->getDefaultValue();
It appears that ionCube may be causing the ReflectionParameter::getDefaultValue() method from detecting the default value.
curl https://yourdomain.com/installpath/api/encryption/systemEncrypt.json -u username:key -d 'value=my text'
Important to note that this issue does not happen if you specify all parameters to a method, call a method that has no default parameters, or call a method that lives outside of any ioncube encoded file.
Issue Links
- relates to
-
CORE-2841 Update API to accept null parameters
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Attempting to invoke AppModel::systemEncrypt() via the Encryption model results in a *Failed to retrieve the default value* error. This is a result of the following lines in /app/controllers/api.php:
{noformat} $method_params[$param->name] = $param->getDefaultValue(); {noformat} It appears that ionCube may be causing the ReflectionParameter::getDefaultValue() method from detecting the default value. {noformat} curl https://yourdomain.com/installpath/api/encryption/systemEncrypt.json -u username:key -d 'value=my text' {noformat} |
Attempting to invoke AppModel::systemEncrypt() via the Encryption model results in a *Failed to retrieve the default value* error. This is a result of the following lines in /app/controllers/api.php:
{noformat} $method_params[$param->name] = $param->getDefaultValue(); {noformat} It appears that ionCube may be causing the ReflectionParameter::getDefaultValue() method from detecting the default value. {noformat} curl https://yourdomain.com/installpath/api/encryption/systemEncrypt.json -u username:key -d 'value=my text' {noformat} Important to note that this issue does not happen if you specify all parameters to a method, call a method without default parameters, or call a method that lives outside of any ioncube encoded file. |
Description |
Attempting to invoke AppModel::systemEncrypt() via the Encryption model results in a *Failed to retrieve the default value* error. This is a result of the following lines in /app/controllers/api.php:
{noformat} $method_params[$param->name] = $param->getDefaultValue(); {noformat} It appears that ionCube may be causing the ReflectionParameter::getDefaultValue() method from detecting the default value. {noformat} curl https://yourdomain.com/installpath/api/encryption/systemEncrypt.json -u username:key -d 'value=my text' {noformat} Important to note that this issue does not happen if you specify all parameters to a method, call a method without default parameters, or call a method that lives outside of any ioncube encoded file. |
Attempting to invoke AppModel::systemEncrypt() via the Encryption model results in a *Failed to retrieve the default value* error. This is a result of the following lines in /app/controllers/api.php:
{noformat} $method_params[$param->name] = $param->getDefaultValue(); {noformat} It appears that ionCube may be causing the ReflectionParameter::getDefaultValue() method from detecting the default value. {noformat} curl https://yourdomain.com/installpath/api/encryption/systemEncrypt.json -u username:key -d 'value=my text' {noformat} Important to note that this issue does not happen if you specify all parameters to a method, call a method that has no default parameters, or call a method that lives outside of any ioncube encoded file. |
Security | Private [ 10000 ] |
Fix Version/s | 3.2.1 [ 10504 ] | |
Fix Version/s | 3.1.4 [ 10500 ] |
Fix Version/s | 3.3.0 [ 10100 ] | |
Fix Version/s | 3.2.0 [ 10502 ] |
Fix Version/s | 3.2.2 [ 10505 ] | |
Fix Version/s | 3.2.1 [ 10504 ] |
Fix Version/s | 3.2.3 [ 10506 ] | |
Fix Version/s | 3.2.2 [ 10505 ] |
Fix Version/s | 3.3.0-b2 [ 10507 ] | |
Fix Version/s | 3.3.0-b1 [ 10100 ] |
Fix Version/s | 3.3.0 [ 10508 ] | |
Fix Version/s | 3.3.0-b2 [ 10507 ] |
Fix Version/s | 3.4.0 [ 10400 ] | |
Fix Version/s | 3.3.0 [ 10508 ] |
Fix Version/s | 3.3.0 [ 10508 ] | |
Fix Version/s | 3.2.3 [ 10506 ] |
Fix Version/s | 3.3.0 [ 10508 ] |
Fix Version/s | 3.5.0 [ 10401 ] | |
Fix Version/s | 3.4.0-b1 [ 10400 ] |
Rank | Ranked higher |
Fix Version/s | 3.5.0-b2 [ 10701 ] | |
Fix Version/s | 3.5.0-b1 [ 10401 ] |
Fix Version/s | 3.5.0-b2 [ 10701 ] |
Rank | Ranked higher |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Won't Fix [ 2 ] |
Status | In Review [ 5 ] | Closed [ 6 ] |