open5gs/tests
Sukchan Lee a9b1b116b3 [SBI] Generate URI via HTTP.location as is (#3058)
A friend in the community was trying to connect an SMF made by another
manufacturer with an SBI interface and found a big problem with Open5GS.

All of the code in the part that generates the Resource URI
from HTTP.location is invalid.

For example, suppose we create a Resource URI with SMContext as below.
{apiRoot}/nsmf-pdusession/<apiVersion>/sm-contexts/{smContextRef}

In this case, Open5GS extracted the {smContextRef} part of the HTTP.location
and appended it to the beginning
{apiRoot}/nsmf-pdusession/<apiVersion>/sm-contexts/.

This implementation may not work properly if the apiRoot changes.
Consider a different port number as shown below.

<HTTP.location>
127.0.0.4:9999/nsmf-pdusession/v1/sm-contexts/1

The SMF may send an apiRoot to the AMF with a changed port number,
in which case the AMF must honor it.

Therefore, instead of extracting only the smContextRef from HTTP.location,
we modified it to use the whole thing to create a Resource URI.

We modified all NFs that use HTTP.location in the same way, not just SMFs.
2024-04-18 21:24:07 +09:00
..
310014 Introduced Subscription identifier de-concealing 2022-12-24 20:22:45 +09:00
af [SBI] Generate URI via HTTP.location as is (#3058) 2024-04-18 21:24:07 +09:00
app [AMF] Increase the number of SLICE 512 to 1024 (#2761)(#2765) 2023-12-04 20:46:58 +09:00
attach [AMF/MME] NAS message in an invaild state (#3131) 2024-04-13 13:25:09 +09:00
common [SEC] Crash and Protocol Violations 2024-04-09 16:23:49 +09:00
core Fixed dynamic-stack-buffer-overflow (#2578, #2577) 2023-09-05 21:58:05 +09:00
crypt Fixed dynamic-stack-buffer-overflow (#2578, #2577) 2023-09-05 21:58:05 +09:00
csfb [MME] Incorrect behavior of SGsAP+Dedicated-Bearer (#3072) 2024-04-01 22:13:36 +09:00
fuzzing [Fuzzing] bug fix 59062 and increasing converge 2023-05-25 22:47:47 +09:00
handover [MME/AMF] Fixed crash following Handover Request (#3014) 2024-02-29 23:02:38 +09:00
non3gpp Revert "[GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043)" 2024-03-26 08:04:26 +09:00
registration [AMF/MME] NAS message in an invaild state (#3131) 2024-04-13 13:25:09 +09:00
sctp [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
slice [AMF] Fixed crash in no context setup (#2999) 2024-03-04 21:03:07 +09:00
unit [SBI] Preamble parsing issues in MIME (#3058) 2024-03-17 10:36:29 +09:00
volte [SGWC] Fixed crashing when Create Bearer Response occurs after Delete Bearer Response (#3109) 2024-04-07 22:51:46 +09:00
vonr [SMF] Added Bi-Directional Flow (#2909) 2024-02-17 20:43:15 +01:00
meson.build [EPC] Support ePDG Interface (#1039) 2021-06-21 22:36:38 +09:00