mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
merge with branch 1.x
This commit is contained in:
@@ -30,18 +30,30 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package sonia.scm.api.rest;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
@XmlRootElement(name="result")
|
||||
@XmlRootElement(name = "result")
|
||||
public class RestActionUploadResult extends RestActionResult
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*/
|
||||
public RestActionUploadResult()
|
||||
{
|
||||
this(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
|
||||
@@ -196,7 +196,7 @@ public abstract class AbstractManagerResource<T extends ModelObject,
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.error("error during create", ex);
|
||||
logger.error("error during delete", ex);
|
||||
response = createErrorResonse(ex);
|
||||
}
|
||||
}
|
||||
@@ -230,7 +230,7 @@ public abstract class AbstractManagerResource<T extends ModelObject,
|
||||
}
|
||||
catch (ScmSecurityException ex)
|
||||
{
|
||||
logger.warn("delete not allowd", ex);
|
||||
logger.warn("update not allowd", ex);
|
||||
response = Response.status(Response.Status.FORBIDDEN).build();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user