Skip to content

LPServer: incorrectly parsing XPATH JSON error Dictionary as Array #430

@jmoody

Description

@jmoody
# LPWebQuery
  
// When output is a JSON Dictionary
49  NSString *output = [webView calabashStringByEvaluatingJavaScript:jsString];

// query result is nil
 51 NSArray *queryResult = [LPJSONUtils deserializeArray:output];


CalWebView-cal[449]  DEBUG LPMapRoute:134 | Map POST, /map Parsed UIScript as
	(
	    "view:'WKWebView'",
	    "with xpath:'hr#green_stripe'"
	)
CalWebView-cal[449] DEBUG LPJSONUtils:107 | Unable to deserialize  
{
     "error":"Exception while running query: hr#green_stripe",
    "details":"Error: INVALID_EXPRESSION_ERR: DOM XPath Exception 51"
}
LPServer should detect this error and return an error result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions