5G-MAG / rt-5gms-application-function

5G Media Streaming - Application Function
https://www.5g-mag.com/streaming
Other
11 stars 6 forks source link

Policy Templates - applicationSessionContext.sliceInfo.sd accepts invalid values #122

Closed dsilhavy closed 8 months ago

dsilhavy commented 8 months ago

Description

The field applicationSessionContext.sliceInfo.sd seems to accept values of an invalid format. By definition in TS 26.512 17.7.0 and TS29571_CommonData.yaml applicationSessionContext.sliceInfo.sd needs to follow the following pattern: ^[A-Fa-f0-9]{6}$.

The following configuration is accepted when updating a dynamic policy configuration:

    "applicationSessionContext": {
        "sliceInfo": {
            "sst": 200,
            "sd": "GGGG"
        }
    }

The sd field does not follow the aforementioned pattern and should be rejected.

Note that I am using the REST interface of the AF and not the m1-session-tool.

davidjwbbc commented 8 months ago

sd field should be validated and must be a 6 digit hexadecimal string.

dsilhavy commented 8 months ago

Fixed in #125

davidjwbbc commented 8 months ago

Closed by merge of #125