Github user GERey commented on a diff in the pull request:
https://github.com/apache/usergrid/pull/453#discussion_r48642476
--- 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 --
I would think we'd want to still throw back the name of the organization we
haven't found in order to search through logs better? Is there a reason we
wouldn't want to do that?
---
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.
---