apache / apache/openwhisk-cli

%0D getting added to APIHOST property of wskprops

Offen
#487 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
109
Forks
98
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Environment details:

* local deployment, native ubuntu, Mac OS, Kubernetes, ...
* version of docker, ubuntu, ...

## Steps to reproduce the issue:

1. Create .wskprops file with AUTH, APIHOST, NAMESPACE
2. on running npm run deploy, code deciphers APIHOST into URL
3. But the URL contains /%0D character added to API host

Because of this, the URL becomes corrupt and so the call fails.

## Provide the expected results and outputs:

```
https://adobeioruntime.net/api/v1/namespaces
```

## Provide the actual results and outputs:

```
https://adobeioruntime.net/%0D/api/v1/namespaces
```

## Additional information you deem important:
* issue happens only occasionally or under certain circumstances
* changes you did or observed in the environment

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, das Problem mit einer Datei .wskprops zu reproduzieren, die AUTH, APIHOST und NAMESPACE enthält, und führe dann npm run deploy aus. Verfolge, wie APIHOST zur Anforderungs-URL wird, und ermittle, wo die Kodierung des Wagenrücklaufs eingeführt wird. Erledigt ist es, wenn die generierte URL https://adobeioruntime.net/api/v1/namespaces ohne /%0D entspricht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
go
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.