Skip to content

Commit 41583dc

Browse files
committed
#2177 fix issues in dcm
1 parent 2e977b6 commit 41583dc

File tree

11 files changed

+19
-518
lines changed

11 files changed

+19
-518
lines changed

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/BExIS.Modules.Dcm.UI.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272
<Compile Include="Controllers\Legacy\ImportMetadataStructureSetParametersController.cs" />
7373
<Compile Include="Controllers\Legacy\ImportMetadataStructureSummaryController.cs" />
7474
<Compile Include="Controllers\Legacy\ManageMetadataStructureController.cs" />
75-
<Compile Include="Controllers\Legacy\PushController.cs" />
76-
<Compile Include="Controllers\Legacy\OldSubmitController.cs" />
7775
<Compile Include="Controllers\Hooks\MetadataController.cs" />
7876
<Compile Include="Controllers\API\LinkController.cs" />
7977
<Compile Include="Controllers\Views\MessagesController.cs" />

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/CreateController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public JsonResult Get(long id)
244244

245245
[JsonNetFilter]
246246
[HttpPost]
247+
[ValidateAntiForgeryTokenOnPost]
247248
public JsonResult Create(CreateModel data)
248249
{
249250
if (data == null) return Json(false);

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/EntityTemplatesController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public JsonResult Delete(long id)
7777

7878
[JsonNetFilter]
7979
[HttpPost]
80+
[ValidateAntiForgeryTokenOnPost]
8081
public JsonResult Update(EntityTemplateModel entityTemplate)
8182
{
8283
using (var entityTemplateManager = new EntityTemplateManager())

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/FormController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,7 @@ private string storeGeneratedFilePathToContentDiscriptor(long datasetId, Dataset
27642764
/// Is called when the user write a letter in Autocomplete User Component
27652765
/// </summary>
27662766
[HttpPost]
2767+
[ValidateAntiForgeryTokenOnPost]
27672768
public ActionResult _AutoCompleteAjaxLoading(string text, long id, string type)
27682769
{
27692770
// if mapping with etities exits
@@ -3238,6 +3239,7 @@ private void validationAgainstJsonSchema()
32383239

32393240
//XX number of index des values nötig
32403241
[HttpPost]
3242+
[ValidateAntiForgeryTokenOnPost]
32413243
public ActionResult ValidateMetadataAttributeUsage(string value, int id, int parentid, string parentname, int number, int parentModelNumber, int parentStepId, long entityId)
32423244
{
32433245
//delete all white spaces from start and end
@@ -3327,6 +3329,7 @@ public ActionResult ValidateMetadataAttributeUsage(string value, int id, int par
33273329
}
33283330

33293331
[HttpPost]
3332+
[ValidateAntiForgeryTokenOnPost]
33303333
public ActionResult ValidateMetadataParameterUsage(string value, int id, long attrUsageId, int number, int parentModelNumber, int parentStepId, long entityId)
33313334
{
33323335
//delete all white spaces from start and end

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/Hooks/AttachmentUploadController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public JsonResult Load(long id, int version)
8989
}
9090

9191
[HttpPost]
92+
[ValidateAntiForgeryTokenOnPost]
9293
public JsonResult Upload(long id)
9394
{
9495
// load edit dataset cache
@@ -160,6 +161,7 @@ public JsonResult Upload(long id)
160161
}
161162

162163
[HttpPost]
164+
[ValidateAntiForgeryTokenOnPost]
163165
public JsonResult RemoveFile(long id, BExIS.UI.Hooks.Caches.FileInfo file)
164166
{
165167
// load edit dataset cache
@@ -224,6 +226,7 @@ public JsonResult RemoveFile(long id, BExIS.UI.Hooks.Caches.FileInfo file)
224226
}
225227

226228
[HttpPost]
229+
[ValidateAntiForgeryTokenOnPost]
227230
public JsonResult SaveFileDescription(long id, BExIS.UI.Hooks.Caches.FileInfo file, string description)
228231
{
229232
HookManager hookManager = new HookManager();

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/Hooks/DataController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public JsonResult Load(long id, int version)
106106
}
107107

108108
[HttpPost]
109+
[ValidateAntiForgeryTokenOnPost]
109110
public JsonResult RemoveFile(long id, FileInfo file)
110111
{
111112
// remove file from server
@@ -141,6 +142,7 @@ public JsonResult RemoveFile(long id, FileInfo file)
141142
/// <param name="file"></param>
142143
/// <returns></returns>
143144
[HttpPost]
145+
[ValidateAntiForgeryTokenOnPost]
144146
public JsonResult RevertFile(long id, FileInfo file)
145147
{
146148
// remove file from server
@@ -184,6 +186,7 @@ public JsonResult RevertFile(long id, FileInfo file)
184186
/// <returns></returns>
185187
/// <exception cref="Exception"></exception>
186188
[HttpPost]
189+
[ValidateAntiForgeryTokenOnPost]
187190
public JsonResult SaveFileDescription(long id, BExIS.UI.Hooks.Caches.FileInfo file)
188191
{
189192
// remove file from cache

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/Hooks/EntityReferenceController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public ActionResult Create(long sourceId, long sourceTypeId)
102102
}
103103

104104
[HttpPost]
105+
[ValidateAntiForgeryTokenOnPost]
105106
public ActionResult Create(CreateSimpleReferenceModel model)
106107
{
107108
EntityReferenceHelper helper = new EntityReferenceHelper();
@@ -169,6 +170,7 @@ public JsonResult GetTargetVersions(long id, long type)
169170
/// <returns></returns>
170171

171172
[HttpPost]
173+
[ValidateAntiForgeryTokenOnPost]
172174
public JsonResult Delete(long id)
173175
{
174176
if (id == 0) return Json(false);

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Controllers/Hooks/FileUploadController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public JsonResult Load(long id, int version)
136136
}
137137

138138
[HttpPost]
139+
[ValidateAntiForgeryTokenOnPost]
139140
public JsonResult Upload(long id)
140141
{
141142
HookManager hookManager = new HookManager();
@@ -200,6 +201,7 @@ public JsonResult Upload(long id)
200201
}
201202

202203
[HttpPost]
204+
[ValidateAntiForgeryTokenOnPost]
203205
public JsonResult RemoveFile(long id, BExIS.UI.Hooks.Caches.FileInfo file)
204206
{
205207
// remove file from server
@@ -227,6 +229,7 @@ public JsonResult RemoveFile(long id, BExIS.UI.Hooks.Caches.FileInfo file)
227229
}
228230

229231
[HttpPost]
232+
[ValidateAntiForgeryTokenOnPost]
230233
public JsonResult SaveFileDescription(long id, BExIS.UI.Hooks.Caches.FileInfo file, string description)
231234
{
232235
// remove file from cache

0 commit comments

Comments
 (0)