|
18 | 18 |
|
19 | 19 | import org.apache.commons.lang3.ArrayUtils; |
20 | 20 | import org.apache.commons.lang3.StringUtils; |
21 | | -import org.apache.logging.log4j.Logger; |
22 | 21 | import org.apache.logging.log4j.LogManager; |
| 22 | +import org.apache.logging.log4j.Logger; |
23 | 23 | import org.json.JSONArray; |
24 | 24 | import org.json.JSONException; |
25 | 25 | import org.json.JSONObject; |
|
34 | 34 | import org.labkey.api.action.ReturnUrlForm; |
35 | 35 | import org.labkey.api.action.SimpleViewAction; |
36 | 36 | import org.labkey.api.action.SpringActionController; |
| 37 | +import org.labkey.api.assay.AssayFileWriter; |
| 38 | +import org.labkey.api.assay.AssayProvider; |
| 39 | +import org.labkey.api.assay.AssayService; |
37 | 40 | import org.labkey.api.data.Container; |
38 | 41 | import org.labkey.api.data.ContainerManager; |
39 | 42 | import org.labkey.api.data.PropertyManager; |
|
69 | 72 | import org.labkey.api.security.permissions.InsertPermission; |
70 | 73 | import org.labkey.api.security.permissions.ReadPermission; |
71 | 74 | import org.labkey.api.security.permissions.UpdatePermission; |
72 | | -import org.labkey.api.assay.AssayFileWriter; |
73 | | -import org.labkey.api.assay.AssayProvider; |
74 | | -import org.labkey.api.assay.AssayService; |
| 75 | +import org.labkey.api.util.ErrorRenderer; |
75 | 76 | import org.labkey.api.util.ExceptionUtil; |
76 | 77 | import org.labkey.api.util.Pair; |
77 | 78 | import org.labkey.api.util.URLHelper; |
78 | 79 | import org.labkey.api.view.ActionURL; |
79 | 80 | import org.labkey.api.view.HtmlView; |
80 | | -import org.labkey.api.view.HttpView; |
81 | 81 | import org.labkey.api.view.JspView; |
82 | 82 | import org.labkey.api.view.NavTree; |
83 | 83 | import org.labkey.api.view.UnauthorizedException; |
|
94 | 94 | import java.io.IOException; |
95 | 95 | import java.util.ArrayList; |
96 | 96 | import java.util.Arrays; |
97 | | -import java.util.Collection; |
98 | 97 | import java.util.Collections; |
99 | 98 | import java.util.HashMap; |
100 | 99 | import java.util.HashSet; |
101 | 100 | import java.util.List; |
102 | 101 | import java.util.Map; |
103 | 102 | import java.util.Set; |
104 | | -import java.util.TreeMap; |
105 | 103 |
|
106 | 104 |
|
107 | 105 | public class LaboratoryController extends SpringActionController |
@@ -1029,8 +1027,7 @@ public void export(ProcessAssayForm form, HttpServletResponse response, BindExce |
1029 | 1027 | { |
1030 | 1028 | if (errors.hasErrors()) |
1031 | 1029 | { |
1032 | | - HttpView errorView = ExceptionUtil.getErrorView(HttpServletResponse.SC_BAD_REQUEST, "Failed to create template - invalid input", null, getViewContext().getRequest(), false); |
1033 | | - errorView.render(getViewContext().getRequest(), getViewContext().getResponse()); |
| 1030 | + ExceptionUtil.renderErrorView(getViewContext(), getPageConfig(), ErrorRenderer.ErrorType.notFound, HttpServletResponse.SC_BAD_REQUEST, "Failed to create template - invalid input", null, false, false); |
1034 | 1031 | return; |
1035 | 1032 | } |
1036 | 1033 |
|
|
0 commit comments