Commit 54b4dc64 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[JM-65] Added check for valid JID on add.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8744 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9b512c27
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
</orderEntry> </orderEntry>
<orderEntryProperties /> <orderEntryProperties />
</component> </component>
<component name="VcsManagerConfiguration">
<option name="ACTIVE_VCS_NAME" value="svn" />
<option name="USE_PROJECT_VCS" value="false" />
</component>
<component name="WebModuleBuildComponent"> <component name="WebModuleBuildComponent">
<setting name="EXPLODED_URL" value="file://" /> <setting name="EXPLODED_URL" value="file://" />
<setting name="EXPLODED_ENABLED" value="false" /> <setting name="EXPLODED_ENABLED" value="false" />
......
...@@ -455,5 +455,9 @@ ...@@ -455,5 +455,9 @@
</orderEntry> </orderEntry>
<orderEntryProperties /> <orderEntryProperties />
</component> </component>
<component name="VcsManagerConfiguration">
<option name="ACTIVE_VCS_NAME" value="svn" />
<option name="USE_PROJECT_VCS" value="false" />
</component>
</module> </module>
...@@ -161,5 +161,9 @@ ...@@ -161,5 +161,9 @@
</orderEntry> </orderEntry>
<orderEntryProperties /> <orderEntryProperties />
</component> </component>
<component name="VcsManagerConfiguration">
<option name="ACTIVE_VCS_NAME" value="svn" />
<option name="USE_PROJECT_VCS" value="false" />
</component>
</module> </module>
...@@ -218,6 +218,7 @@ ...@@ -218,6 +218,7 @@
## Added key: 'user.roster.add.add_another' ## Added key: 'user.roster.add.add_another'
## Added key: 'user.roster.add.required' ## Added key: 'user.roster.add.required'
## Added key: 'user.roster.item.settings' ## Added key: 'user.roster.item.settings'
## Added key: 'user.roster.add.illegal_jid'
# Openfire # Openfire
...@@ -1934,6 +1935,7 @@ user.roster.add.info=Use the form below to add a new roster item for user {0}. ...@@ -1934,6 +1935,7 @@ user.roster.add.info=Use the form below to add a new roster item for user {0}.
user.roster.add.error_adding_item=Error adding roster item. Please check your server logs. user.roster.add.error_adding_item=Error adding roster item. Please check your server logs.
user.roster.add.item_exists=Roster item of the same JID already exists. user.roster.add.item_exists=Roster item of the same JID already exists.
user.roster.add.uneditable_group=Attempted to remove item from a group that is not editable. (probably a shared group) user.roster.add.uneditable_group=Attempted to remove item from a group that is not editable. (probably a shared group)
user.roster.add.illegal_jid=JID was not of a valid format.
user.roster.add.success=Successfully added roster item. user.roster.add.success=Successfully added roster item.
user.roster.add.new_item=Add New Roster Item user.roster.add.new_item=Add New Roster Item
user.roster.add.add=Add Item user.roster.add.add=Add Item
......
...@@ -29,5 +29,9 @@ ...@@ -29,5 +29,9 @@
</orderEntry> </orderEntry>
<orderEntryProperties /> <orderEntryProperties />
</component> </component>
<component name="VcsManagerConfiguration">
<option name="ACTIVE_VCS_NAME" value="svn" />
<option name="USE_PROJECT_VCS" value="false" />
</component>
</module> </module>
...@@ -74,6 +74,9 @@ ...@@ -74,6 +74,9 @@
catch (SharedGroupException e) { catch (SharedGroupException e) {
errors.put("uneditableGroup",""); errors.put("uneditableGroup","");
} }
catch (IllegalArgumentException e) {
errors.put("illegalJID","");
}
catch (Exception e) { catch (Exception e) {
errors.put("general",""); errors.put("general","");
Log.error(e); Log.error(e);
...@@ -114,6 +117,8 @@ ...@@ -114,6 +117,8 @@
<fmt:message key="user.roster.add.item_exists" /> <fmt:message key="user.roster.add.item_exists" />
<% } else if (errors.get("uneditableGroup") != null) { %> <% } else if (errors.get("uneditableGroup") != null) { %>
<fmt:message key="user.roster.add.uneditable_group" /> <fmt:message key="user.roster.add.uneditable_group" />
<% } else if (errors.get("illegalJID") != null) { %>
<fmt:message key="user.roster.add.illegal_jid" />
<% } %> <% } %>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment