Error when passing null
as Parse.Cloud.run
option
#9766
Labels
type:bug
Impaired feature or lacking behavior that is likely assumed
Uh oh!
There was an error while loading. Please reload this page.
New Issue Checklist
Issue Description
In
_getRequestOptions
in fileParseObject.js
the parameteroptions
is set to{}
if it has no value. This works for values like''
,undefined
or if it is empty, but if it isnull
the code breaks.Steps to reproduce
Call the function
Parse.Cloud.run(<name>, data, null);
or_ParseObject.default._getRequestOptions(null);
directly.Actual Outcome
Error:
Expected Outcome
When no options
_getRequestOptions
should return{}
Environment
I have tested this in
8.2.0
and8.2.1-alpha.2
. Error occurs in both.The function does not exists in
7.5.2
Server
8.2.0
macOS 15.5
local
Database
MongoDB
macOS 15.5
local
Client
Node
22.14.0
Logs
Proposed solution
Some kind of null check for the parameter
options
. Like insert this on row 420:The text was updated successfully, but these errors were encountered: