Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UDR
Commits
28ce511f
Commit
28ce511f
authored
Jun 22, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix content type error for response message
parent
a55a4bda
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
52 additions
and
1 deletion
+52
-1
etc/udr.conf
etc/udr.conf
+1
-1
src/api_server/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
..._server/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
+6
-0
src/api_server/impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
...impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
+3
-0
src/api_server/impl/AuthenticationDataDocumentApiImpl.cpp
src/api_server/impl/AuthenticationDataDocumentApiImpl.cpp
+6
-0
src/api_server/impl/AuthenticationStatusDocumentApiImpl.cpp
src/api_server/impl/AuthenticationStatusDocumentApiImpl.cpp
+9
-0
src/api_server/impl/AuthenticationSubscriptionDocumentApiImpl.cpp
...server/impl/AuthenticationSubscriptionDocumentApiImpl.cpp
+6
-0
src/api_server/impl/SDMSubscriptionDocumentApiImpl.cpp
src/api_server/impl/SDMSubscriptionDocumentApiImpl.cpp
+6
-0
src/api_server/impl/SDMSubscriptionsCollectionApiImpl.cpp
src/api_server/impl/SDMSubscriptionsCollectionApiImpl.cpp
+3
-0
src/api_server/impl/SMFRegistrationDocumentApiImpl.cpp
src/api_server/impl/SMFRegistrationDocumentApiImpl.cpp
+6
-0
src/api_server/impl/SMFRegistrationsCollectionApiImpl.cpp
src/api_server/impl/SMFRegistrationsCollectionApiImpl.cpp
+3
-0
src/api_server/impl/SMFSelectionSubscriptionDataDocumentApiImpl.cpp
...rver/impl/SMFSelectionSubscriptionDataDocumentApiImpl.cpp
+3
-0
No files found.
etc/udr.conf
View file @
28ce511f
...
@@ -40,6 +40,6 @@ UDR =
...
@@ -40,6 +40,6 @@ UDR =
MYSQL_USER
=
"@MYSQL_USER@"
;
MYSQL_USER
=
"@MYSQL_USER@"
;
MYSQL_PASS
=
"@MYSQL_PASS@"
;
MYSQL_PASS
=
"@MYSQL_PASS@"
;
MYSQL_DB
=
"@MYSQL_DB@"
;
MYSQL_DB
=
"@MYSQL_DB@"
;
DB_CONNECTION_TIMEOUT
=
10
;
# Reset the connection to the DB after expiring the timeout (in second)
DB_CONNECTION_TIMEOUT
=
300
;
# Reset the connection to the DB after expiring the timeout (in second)
};
};
};
};
src/api_server/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -73,6 +73,9 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(
...
@@ -73,6 +73,9 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
void
AMF3GPPAccessRegistrationDocumentApiImpl
::
query_amf_context3gpp
(
void
AMF3GPPAccessRegistrationDocumentApiImpl
::
query_amf_context3gpp
(
...
@@ -88,6 +91,9 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(
...
@@ -88,6 +91,9 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -66,6 +66,9 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data(
...
@@ -66,6 +66,9 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/AuthenticationDataDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -62,6 +62,9 @@ void AuthenticationDataDocumentApiImpl::create_auth_subs_data(
...
@@ -62,6 +62,9 @@ void AuthenticationDataDocumentApiImpl::create_auth_subs_data(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
httpCode
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
httpCode
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
responseData
.
dump
().
c_str
());
response
.
send
(
code
,
responseData
.
dump
().
c_str
());
}
}
...
@@ -75,6 +78,9 @@ void AuthenticationDataDocumentApiImpl::delete_auth_subs_data(
...
@@ -75,6 +78,9 @@ void AuthenticationDataDocumentApiImpl::delete_auth_subs_data(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
httpCode
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
httpCode
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
responseData
.
dump
().
c_str
());
response
.
send
(
code
,
responseData
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/AuthenticationStatusDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -59,6 +59,9 @@ void AuthenticationStatusDocumentApiImpl::create_authentication_status(
...
@@ -59,6 +59,9 @@ void AuthenticationStatusDocumentApiImpl::create_authentication_status(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
@@ -73,6 +76,9 @@ void AuthenticationStatusDocumentApiImpl::delete_authentication_status(
...
@@ -73,6 +76,9 @@ void AuthenticationStatusDocumentApiImpl::delete_authentication_status(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
void
AuthenticationStatusDocumentApiImpl
::
query_authentication_status
(
void
AuthenticationStatusDocumentApiImpl
::
query_authentication_status
(
...
@@ -88,6 +94,9 @@ void AuthenticationStatusDocumentApiImpl::query_authentication_status(
...
@@ -88,6 +94,9 @@ void AuthenticationStatusDocumentApiImpl::query_authentication_status(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/AuthenticationSubscriptionDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -65,6 +65,9 @@ void AuthenticationSubscriptionDocumentApiImpl::
...
@@ -65,6 +65,9 @@ void AuthenticationSubscriptionDocumentApiImpl::
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
@@ -82,6 +85,9 @@ void AuthenticationSubscriptionDocumentApiImpl::
...
@@ -82,6 +85,9 @@ void AuthenticationSubscriptionDocumentApiImpl::
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/SDMSubscriptionDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -81,6 +81,9 @@ void SDMSubscriptionDocumentApiImpl::removesdm_subscriptions(
...
@@ -81,6 +81,9 @@ void SDMSubscriptionDocumentApiImpl::removesdm_subscriptions(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
void
SDMSubscriptionDocumentApiImpl
::
updatesdmsubscriptions
(
void
SDMSubscriptionDocumentApiImpl
::
updatesdmsubscriptions
(
...
@@ -96,6 +99,9 @@ void SDMSubscriptionDocumentApiImpl::updatesdmsubscriptions(
...
@@ -96,6 +99,9 @@ void SDMSubscriptionDocumentApiImpl::updatesdmsubscriptions(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/SDMSubscriptionsCollectionApiImpl.cpp
View file @
28ce511f
...
@@ -72,6 +72,9 @@ void SDMSubscriptionsCollectionApiImpl::querysdmsubscriptions(
...
@@ -72,6 +72,9 @@ void SDMSubscriptionsCollectionApiImpl::querysdmsubscriptions(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/SMFRegistrationDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -74,6 +74,9 @@ void SMFRegistrationDocumentApiImpl::delete_smf_context(
...
@@ -74,6 +74,9 @@ void SMFRegistrationDocumentApiImpl::delete_smf_context(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
void
SMFRegistrationDocumentApiImpl
::
query_smf_registration
(
void
SMFRegistrationDocumentApiImpl
::
query_smf_registration
(
...
@@ -90,6 +93,9 @@ void SMFRegistrationDocumentApiImpl::query_smf_registration(
...
@@ -90,6 +93,9 @@ void SMFRegistrationDocumentApiImpl::query_smf_registration(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/SMFRegistrationsCollectionApiImpl.cpp
View file @
28ce511f
...
@@ -59,6 +59,9 @@ void SMFRegistrationsCollectionApiImpl::query_smf_reg_list(
...
@@ -59,6 +59,9 @@ void SMFRegistrationsCollectionApiImpl::query_smf_reg_list(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
src/api_server/impl/SMFSelectionSubscriptionDataDocumentApiImpl.cpp
View file @
28ce511f
...
@@ -64,6 +64,9 @@ void SMFSelectionSubscriptionDataDocumentApiImpl::query_smf_select_data(
...
@@ -64,6 +64,9 @@ void SMFSelectionSubscriptionDataDocumentApiImpl::query_smf_select_data(
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
// content type
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment