You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way contentURI is being parsed doesn't work if the location has a : character (i.e. http:localhost:8080/foo), because we parse it doing a naïve contentURI.split(':') and just use the first and second items in the array.
We should only take into account the first occurrence of : and return everything after it as location.
Prior to this commit, all content URIs of application versions are
expected to follow the format `<provider>:<identifier>`. In case a
content URI doesn't follow this format, an error is thrown.
We now ensure that in such cases, the code still executes but resolves
early with an error or warning respectively.
It also fixesaragon#27 where parsing content URIs that contain more than
one split character (e.g. `:` in `http://localhost:8080/foo/bar`) splits
the `identifier` as well (which we don't want).
Fixesaragon#20, aragon#27
The way
contentURI
is being parsed doesn't work if the location has a:
character (i.e.http:localhost:8080/foo
), because we parse it doing a naïvecontentURI.split(':')
and just use the first and second items in the array.We should only take into account the first occurrence of
:
and return everything after it as location.See aragon/aragon-cli#171
The text was updated successfully, but these errors were encountered: