cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Bell (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-10675) cordova prepare fails
Date Tue, 23 Feb 2016 18:21:18 GMT

    [ https://issues.apache.org/jira/browse/CB-10675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159361#comment-15159361
] 

Tom Bell edited comment on CB-10675 at 2/23/16 6:21 PM:
--------------------------------------------------------

https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/metadata/ios_parser.js#L402

This is the culprit.

`URL.parse` results in a `null` path name when the input is "https://*", which worked previously,
but now doesn't.

Node 5.6.0/5.5.0:

URL.parse resulted in:

{ protocol: 'https:',
  slashes: true,
  auth: null,
  host: '',
  port: null,
  hostname: '',
  hash: null,
  search: null,
  query: null,
  pathname: '/*',
  path: '/*',
  href: 'https:///*' }

in Node 5.7.0:

Url {
  protocol: 'https:',
  slashes: true,
  auth: null,
  host: '',
  port: null,
  hostname: '',
  hash: null,
  search: null,
  query: null,
  pathname: null,
  path: null,
  href: 'https://' }


was (Author: tombell):
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/metadata/ios_parser.js#L402

This is the culprit.

`URL.parse` results in a `null` path name when the input is "https://*", which worked previously,
but now doesn't.

Node 5.6.0/5.50:

URL.parse resulted in:

{ protocol: 'https:',
  slashes: true,
  auth: null,
  host: '',
  port: null,
  hostname: '',
  hash: null,
  search: null,
  query: null,
  pathname: '/*',
  path: '/*',
  href: 'https:///*' }

in Node 5.7.0:

Url {
  protocol: 'https:',
  slashes: true,
  auth: null,
  host: '',
  port: null,
  hostname: '',
  hash: null,
  search: null,
  query: null,
  pathname: null,
  path: null,
  href: 'https://' }

> cordova prepare fails
> ---------------------
>
>                 Key: CB-10675
>                 URL: https://issues.apache.org/jira/browse/CB-10675
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: 6.0.0
>            Reporter: Tom Bell
>
> Running `cordova prepare` fails on an access element with url "https://*".
> Executing "before_prepare"  hook for all plugins.
> Searching PlatformJson files for differences between project vs. platform installed plugins
> No differences found between project and android platform. Continuing...
> Searching PlatformJson files for differences between project vs. platform installed plugins
> No differences found between project and ios platform. Continuing...
> Generating config.xml from defaults for platform "android"
> Wrote out Android application name to "Capsule"
> This app does not have launcher icons defined
> Wrote out Android package name to "com.zestia.mobile"
> Generating config.xml from defaults for platform "ios"
> Error: TypeError: Cannot read property 'indexOf' of null
>     at parseWhitelistUrlForATS (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:402:26)
>     at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:354:19
>     at Array.reduce (native)
>     at processAccessAndAllowNavigationEntries (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:353:6)
>     at writeATSEntries (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:442:14)
>     at ios_parser.update_from_config (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:114:15)
>     at ios_parser.update_project (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:290:17)
>     at PlatformApiPoly.prepare (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:212:25)
>     at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:101:32
>     at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message