title: 400 Bad Request error on Delete
body: <p>Me and my m8s are developing a manuscript handling system for our university using Spring MVC,angularJS etc. We have some issues with deleting a user from the database.</p>
  
  <p>We get always HTTP Status 400 - Required String parameter 'userName' is not present</p>
  
  <p>type Status report</p>
  
  <p>message Required String parameter 'userName' is not present</p>
  
  <p>description The request sent by the client was syntactically incorrect.</p>
  
  <p>Controller:</p>
  
  <pre><code>@Secured({ "ROLE_ADMIN" })
  @RequestMapping(value = "/delete/{userName}", method = RequestMethod.DELETE)
  public void deleteUser(@RequestParam String userName) {
      LOGGER.info("Deleted user: " + userName);
      userManagerService.deleteUser(userName);
  }
  </code></pre>
  
  <p>Method of the ManuscriptAdminService.js:</p>
  
  <pre><code>function deleteUser(userName){
      $log.info("Delete selected user "+new Date());
      $http.delete('delete/'+userName).then(function(data){
          console.log(data);
      },function(error){
          $log.error("Error occured while admin tried to delete user "+new Date());
      });
  }
  </code></pre>
  
  <p>Method of the ManuscriptAdminController.js</p>
  
  <pre><code>    vm.showModalUserDelete = function(index) {
      $log.info("Show user delete modal "+new Date());
      var modelInstance = $modal
              .open({
                  animation : true,
                  templateUrl : 'htmlcontent/content/admin/modal/userDeleteManageModal.html',
                  controller : 'ManuscriptAdminModalinstacneController',
                  controllerAs : 'ManuscriptAdminModalinstacneController',
                  size : 300,
                  resolve : {
                      items : function() {
                          return ManuscriptAdminService.getUserName(index);
                      }
  
                  }
              });
  
      modelInstance.result.then(function (result) {
          ManuscriptAdminService.deleteUser(result);
          }, function () {
            $log.info('Modal dismissed at: ' + new Date());
          });
  
  };
  </code></pre>