openslice / io.openslice.mano

MANO wrapper service
Apache License 2.0
2 stars 1 forks source link

NumberFormatException when vnf-profile.id is not an integer #12

Closed kostistr closed 1 year ago

kostistr commented 1 year ago

Error log

java.lang.NumberFormatException: For input string: "vnf", at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68), at java.base/java.lang.Integer.parseInt(Integer.java:658), at java.base/java.lang.Integer.parseInt(Integer.java:776), at io.openslice.mano.MANOController.mapOSM10NSD2Product(MANOController.java:3224), at io.openslice.mano.MANOController.mapOSM10NSD2ProductEagerDataJson(MANOController.java:3116)

NSD yaml

df:
- id: default-df
  vnf-profile:
  - id: vnf <-- string
Ioannischatzis commented 1 year ago

This issue affects NFV Portal Onboarding.

kostistr commented 1 year ago

OSM_Export_hackfest_basic-ns-metrics.tar.gz OSM_Export_hackfest_basic_metrics-vnf.tar.gz

This issue was reproduced with these artifacts. UI was ok when vnf-profile.id was changed to an integer (eg. 1) from 'vnf'.

Ioannischatzis commented 1 year ago

Closing this issue with commits https://github.com/openslice/io.openslice.mano/commit/ca26f09f49fbd52e507be19a81cc727ffd437c6a https://github.com/openslice/io.openslice.model/commit/6db8401e272a817e421482ad3d6a65e19b0392ee