Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
e387da54
Commit
e387da54
authored
Aug 14, 2015
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #274 from tevans/OF-938
OF-938: Use correct namespace for BOSH packets
parents
d29034d0
23366527
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
HttpSession.java
src/java/org/jivesoftware/openfire/http/HttpSession.java
+5
-13
No files found.
src/java/org/jivesoftware/openfire/http/HttpSession.java
View file @
e387da54
...
...
@@ -1173,19 +1173,11 @@ public class HttpSession extends LocalClientSession {
this
.
text
=
null
;
this
.
packets
=
new
ArrayList
<
String
>();
for
(
Packet
packet
:
elements
)
{
// Rewrite packet namespace according XEP-0206
if
(
packet
instanceof
Presence
)
{
this
.
packets
.
add
(
"<presence xmlns=\"jabber:client\""
+
packet
.
toXML
().
substring
(
9
));
}
else
if
(
packet
instanceof
IQ
)
{
this
.
packets
.
add
(
"<iq xmlns=\"jabber:client\""
+
packet
.
toXML
().
substring
(
3
));
}
else
if
(
packet
instanceof
Message
)
{
this
.
packets
.
add
(
"<message xmlns=\"jabber:client\""
+
packet
.
toXML
().
substring
(
8
));
}
else
{
this
.
packets
.
add
(
packet
.
toXML
());
}
// Append packet namespace according XEP-0206 if needed
if
(
Namespace
.
NO_NAMESPACE
.
equals
(
packet
.
getElement
().
getNamespace
()))
{
packet
.
getElement
().
add
(
Namespace
.
get
(
"jabber:client"
));
}
this
.
packets
.
add
(
packet
.
toXML
());
}
}
...
...
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