Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Notification
Commits
00cc8611
Commit
00cc8611
authored
Oct 13, 2021
by
Rucha Deshpande
Browse files
add x-user-id to pubsubbodyextractor
parent
e3b62528
Changes
2
Hide whitespace changes
Inline
Side-by-side
notification-core/src/main/java/org/opengroup/osdu/notification/service/SubscriptionHandler.java
View file @
00cc8611
...
...
@@ -73,6 +73,9 @@ public class SubscriptionHandler {
while
(
itr
.
hasNext
())
{
System
.
out
.
println
(
itr
.
next
());
}
tempheaders
.
entrySet
().
forEach
(
entry
->
{
System
.
out
.
println
(
entry
.
getKey
()
+
" "
+
entry
.
getValue
());
});
System
.
out
.
println
(
"**********TESTING ISTIO PRINTING ALL HEADERS done*************"
);
ISubscriptionService
service
=
subscriptionFactory
.
create
(
headers
);
...
...
provider/notification-aws/src/main/java/org/opengroup/osdu/notification/provider/aws/impl/AwsPubsubRequestBodyExtractor.java
View file @
00cc8611
...
...
@@ -112,6 +112,7 @@ public class AwsPubsubRequestBodyExtractor implements IPubsubRequestBodyExtracto
throw
new
AppException
(
HttpStatus
.
BAD_REQUEST
.
value
(),
INVALID_PUBSUB_MESSAGE
,
"No tenant information from pubsub message."
);
}
lowerCase
.
put
(
"x-user-id"
,
attributes
.
get
(
"x-user-id"
));
content
.
setAttributes
(
lowerCase
);
String
decoded
=
new
String
(
Base64
.
getDecoder
().
decode
(
data
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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