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
50151644
Commit
50151644
authored
Sep 19, 2017
by
Ash Ward
Committed by
Guus der Kinderen
Sep 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle per-domain disco item providers correctly
parent
737f2a76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
IQDiscoItemsHandler.java
.../org/jivesoftware/openfire/disco/IQDiscoItemsHandler.java
+8
-2
No files found.
src/java/org/jivesoftware/openfire/disco/IQDiscoItemsHandler.java
View file @
50151644
...
...
@@ -111,8 +111,14 @@ public class IQDiscoItemsHandler extends IQHandler implements ServerFeaturesProv
// We consider the host of the recipient JID of the packet as the entity. It's the
// DiscoItemsProvider responsibility to provide the items associated with the JID's name
// together with any possible requested node.
DiscoItemsProvider
itemsProvider
=
getProvider
(
packet
.
getTo
()
==
null
?
packet
.
getFrom
().
getNode
()
:
packet
.
getTo
().
getNode
()
!=
null
?
packet
.
getTo
().
getNode
()
:
packet
.
getTo
().
getDomain
());
DiscoItemsProvider
itemsProvider
=
null
;
if
((
packet
.
getTo
()
==
null
)
||
(
packet
.
getTo
().
asBareJID
().
equals
(
packet
.
getFrom
().
asBareJID
())))
{
itemsProvider
=
getProvider
(
XMPPServer
.
getInstance
().
getServerInfo
().
getXMPPDomain
());
}
else
{
itemsProvider
=
getProvider
(
packet
.
getTo
().
getDomain
());
}
if
(
itemsProvider
!=
null
)
{
// Get the JID's name
String
name
=
packet
.
getTo
()
==
null
?
null
:
packet
.
getTo
().
getNode
();
...
...
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