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
492ca16f
Commit
492ca16f
authored
Jul 07, 2016
by
Tagir Valeev
Committed by
akrherz
Jul 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
max_items reading is fixed (#612)
OF-1157
parent
3774b875
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
GetListActiveUsers.java
...esoftware/openfire/commands/admin/GetListActiveUsers.java
+1
-1
GetUsersPresence.java
...ivesoftware/openfire/commands/admin/GetUsersPresence.java
+1
-1
GetListGroups.java
...software/openfire/commands/admin/group/GetListGroups.java
+1
-1
No files found.
src/java/org/jivesoftware/openfire/commands/admin/GetListActiveUsers.java
View file @
492ca16f
...
...
@@ -69,7 +69,7 @@ public class GetListActiveUsers extends AdHocCommand {
public
void
execute
(
SessionData
data
,
Element
command
)
{
String
max_items
=
data
.
getData
().
get
(
"max_items"
).
get
(
0
);
int
maxItems
=
-
1
;
if
(
max_items
!=
null
&&
"none"
.
equals
(
max_items
))
{
if
(
max_items
!=
null
&&
!
"none"
.
equals
(
max_items
))
{
try
{
maxItems
=
Integer
.
parseInt
(
max_items
);
}
...
...
src/java/org/jivesoftware/openfire/commands/admin/GetUsersPresence.java
View file @
492ca16f
...
...
@@ -73,7 +73,7 @@ public class GetUsersPresence extends AdHocCommand {
public
void
execute
(
SessionData
data
,
Element
command
)
{
String
max_items
=
data
.
getData
().
get
(
"max_items"
).
get
(
0
);
int
maxItems
=
-
1
;
if
(
max_items
!=
null
&&
"none"
.
equals
(
max_items
))
{
if
(
max_items
!=
null
&&
!
"none"
.
equals
(
max_items
))
{
try
{
maxItems
=
Integer
.
parseInt
(
max_items
);
}
...
...
src/java/org/jivesoftware/openfire/commands/admin/group/GetListGroups.java
View file @
492ca16f
...
...
@@ -99,7 +99,7 @@ public class GetListGroups extends AdHocCommand {
}
}
int
maxItems
=
100000
;
if
(
max_items
!=
null
&&
"none"
.
equals
(
max_items
))
{
if
(
max_items
!=
null
&&
!
"none"
.
equals
(
max_items
))
{
try
{
maxItems
=
Integer
.
parseInt
(
max_items
);
}
...
...
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