Github user mdunker commented on a diff in the pull request:
https://github.com/apache/usergrid/pull/453#discussion_r48642509
--- Diff:
stack/rest/src/main/java/org/apache/usergrid/rest/management/users/organizations/OrganizationsResource.java
---
@@ -113,8 +113,8 @@ public ApiResponse newOrganizationForUserFromForm(
@Context UriInfo ui, Map<Stri
ApiResponse response = createApiResponse();
response.setAction( "new organization for user" );
- if ( organizationName == null ) {
- throw new ManagementException( "Could not find organization
for name: " + organizationName );
+ if ( organizationName == null || organizationName.isEmpty() ) {
+ throw new ManagementException( "Organization not specified." );
--- End diff --
This only happens if the organization name is null or an empty string. What
do we have to return? :)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---