open5gs/docs
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
..
_docs [SBI] Generate URI via HTTP.location as is (#3058) 2024-04-18 21:24:07 +09:00
_includes Changes new GA4 in Google Analytics 2022-09-26 14:29:19 +09:00
_layouts Update document 2022-11-15 11:21:18 +09:00
_pages Added UPF performance test with NextEPC 2024-02-05 06:29:36 +09:00
_posts configs, docs: adjust to logger config change 2024-04-18 21:08:35 +09:00
_sass Add a Document 2019-04-28 00:01:51 +09:00
assets Release v2.7.0 2023-12-04 21:14:37 +09:00
.gitignore Add a Document 2019-04-28 00:01:51 +09:00
Gemfile doc: Re-install with updated source code 2021-03-28 20:44:31 +09:00
Gemfile.lock doc: Re-install with updated source code 2021-03-28 20:44:31 +09:00
_config.yml Upgrade to Release-17 2023-03-06 22:45:56 +09:00