Entry/Node Href to assets are wrong

Found in

EPiServer.ServiceApi 5.0.0

Fixed in

EPiServer.ServiceApi 5.4.0

Created

Mar 15, 2019

Updated

Apr 01, 2019

Area

Service API

State

Closed, Fixed and tested


Description

Try to get the a node or entry data

Its assets appear to be

"Assets": [
        {
            "Title": "https://online.se/globalassets/product-pictures/zassenhaus/29791-01-02.jpg/",
            "Type": "Asset",
            "Href": "/episerverapi/commerce/entries/29791-01/assets/91881/site.features.media.models.imagemediadata",
            "Properties": null
        },
        {
            "Title": "https://online.se/globalassets/product-pictures/zassenhaus/29791-01-03.jpg/",
            "Type": "Asset",
            "Href": "/episerverapi/commerce/entries/29791-01/assets/91882/site.features.media.models.imagemediadata",
            "Properties": null
        },
        {
            "Title": "https://online.se/globalassets/product-pictures/zassenhaus/29791-01-01.jpg/",
            "Type": "Asset",
            "Href": "/episerverapi/commerce/entries/29791-01/assets/91883/site.features.media.models.imagemediadata",
            "Properties": null
        }
    ],

which is incorrect, the href should be in form of

episerverapi/commerce/entries/29791-02/assets/3dd75ef9-fe01-41ed-bbd1-0d191db03015/site.features.media.models.imagemediadata