@@ -153,12 +153,12 @@ public class ImportController {
153
153
@ Autowired
154
154
private SubscriptionUpdater updater ;
155
155
156
- @ RequestMapping (LIST_PATH )
156
+ @ RequestMapping (LIST_PATH + ".form" )
157
157
public void list (Model model ) {
158
158
model .addAttribute ("subscriptions" , MetadataSharing .getService ().getAllImportedPackages ());
159
159
}
160
160
161
- @ RequestMapping (value = TOGGLE_SUBSCRIBE_PATH , method = RequestMethod .GET )
161
+ @ RequestMapping (value = TOGGLE_SUBSCRIBE_PATH + ".form" , method = RequestMethod .GET )
162
162
public String toggleSubscribe (Integer id ) {
163
163
ImportedPackage importedPackage = MetadataSharing .getService ().getImportedPackageById (id );
164
164
if (importedPackage != null ) {
@@ -172,7 +172,7 @@ public String toggleSubscribe(Integer id) {
172
172
return WebUtils .redirect (LIST_PATH );
173
173
}
174
174
175
- @ RequestMapping (value = DELETE_SUBSCRIBE_PATH , method = RequestMethod .GET )
175
+ @ RequestMapping (value = DELETE_SUBSCRIBE_PATH + ".form" , method = RequestMethod .GET )
176
176
public String purgeSubscribe (Integer id ) {
177
177
ImportedPackage importedPackage = MetadataSharing .getService ().getImportedPackageById (id );
178
178
if (importedPackage != null ) {
@@ -182,7 +182,7 @@ public String purgeSubscribe(Integer id) {
182
182
}
183
183
184
184
185
- @ RequestMapping (value = JSON_CHECK_UPDATES_PATH , method = RequestMethod .GET )
185
+ @ RequestMapping (value = JSON_CHECK_UPDATES_PATH + ".form" , method = RequestMethod .GET )
186
186
public ModelAndView jsonCheckUpdates (Integer id , ModelMap model ) {
187
187
ImportedPackage importedPackage = MetadataSharing .getService ().getImportedPackageById (id );
188
188
if (importedPackage != null && importedPackage .isSubscribed ()) {
@@ -263,12 +263,12 @@ public ModelAndView jsonPerformDownload(@ModelAttribute(DOWNLOADER)
263
263
return new ModelAndView (jsonObjectView );
264
264
}
265
265
266
- @ RequestMapping (value = UPLOAD_PATH , method = RequestMethod .GET )
266
+ @ RequestMapping (value = UPLOAD_PATH + ".form" , method = RequestMethod .GET )
267
267
public void upload (SessionStatus status ) {
268
268
status .setComplete ();
269
269
}
270
270
271
- @ RequestMapping (value = UPLOAD_PATH , method = RequestMethod .POST )
271
+ @ RequestMapping (value = UPLOAD_PATH + ".form" , method = RequestMethod .POST )
272
272
public String uploadPOST (UploadForm uploadForm , Errors errors , Model model ) throws IOException {
273
273
uploadFormValidator .validate (uploadForm , errors );
274
274
if (errors .hasErrors ()) {
@@ -315,13 +315,13 @@ public String uploadPOST(UploadForm uploadForm, Errors errors, Model model) thro
315
315
}
316
316
}
317
317
318
- @ RequestMapping (value = VALIDATE_PATH , method = RequestMethod .GET )
318
+ @ RequestMapping (value = VALIDATE_PATH + ".form" , method = RequestMethod .GET )
319
319
public void validate (@ ModelAttribute (IMPORTER )
320
320
PackageImporter importer , Errors errors ) throws SerializationException {
321
321
packageContainerValidator .validateForErrorsAndWarnings (importer , errors );
322
322
}
323
323
324
- @ RequestMapping (value = VALIDATE_PATH , method = RequestMethod .POST )
324
+ @ RequestMapping (value = VALIDATE_PATH + ".form" , method = RequestMethod .POST )
325
325
public String validatePOST (@ ModelAttribute (IMPORTER )
326
326
PackageImporter importer , Errors errors ) {
327
327
packageContainerValidator .validate (importer , errors );
@@ -333,11 +333,11 @@ public String validatePOST(@ModelAttribute(IMPORTER)
333
333
}
334
334
}
335
335
336
- @ RequestMapping (value = MODE_PATH , method = RequestMethod .GET )
336
+ @ RequestMapping (value = MODE_PATH + ".form" , method = RequestMethod .GET )
337
337
public void mode () {
338
338
}
339
339
340
- @ RequestMapping (value = MODE_PATH , method = RequestMethod .POST )
340
+ @ RequestMapping (value = MODE_PATH + ".form" , method = RequestMethod .POST )
341
341
public String modePOST (@ ModelAttribute (IMPORTER )
342
342
PackageImporter importer , String importMode ) {
343
343
ImportMode mode = ImportMode .valueOf (importMode );
@@ -354,12 +354,12 @@ public String modePOST(@ModelAttribute(IMPORTER)
354
354
return WebUtils .redirect (CONFIG_PATH );
355
355
}
356
356
357
- @ RequestMapping (value = CONFIG_PATH , method = RequestMethod .GET )
357
+ @ RequestMapping (value = CONFIG_PATH + ".form" , method = RequestMethod .GET )
358
358
public void config (@ ModelAttribute (IMPORTER )
359
359
PackageImporter importer ) {
360
360
}
361
361
362
- @ RequestMapping (value = CONFIG_PATH , method = RequestMethod .POST )
362
+ @ RequestMapping (value = CONFIG_PATH + ".form" , method = RequestMethod .POST )
363
363
public String configPOST (@ ModelAttribute (IMPORTER )
364
364
PackageImporter importer , Model model ) throws IOException {
365
365
ImportedPackage importedPackage = MetadataSharing .getService ().getImportedPackageByGroup (
@@ -380,7 +380,7 @@ public String configPOST(@ModelAttribute(IMPORTER)
380
380
return WebUtils .redirect (LOAD_PATH );
381
381
}
382
382
383
- @ RequestMapping (value = LOAD_PATH , params = "part" )
383
+ @ RequestMapping (value = LOAD_PATH + ".form" , params = "part" )
384
384
public String load (@ ModelAttribute (IMPORTER )
385
385
PackageImporter importer , @ ModelAttribute (PARTS )
386
386
Map <Integer , Boolean > parts , Integer part , Model model ) {
@@ -412,7 +412,7 @@ public String load(@ModelAttribute(IMPORTER)
412
412
}
413
413
}
414
414
415
- @ RequestMapping (LOAD_PATH )
415
+ @ RequestMapping (LOAD_PATH + ".form" )
416
416
public String load (@ ModelAttribute (IMPORTER )
417
417
PackageImporter importer , @ ModelAttribute (ITEMS_STATS )
418
418
ImportedItemsStats stats , @ ModelAttribute (PARTS )
@@ -429,7 +429,7 @@ public String load(@ModelAttribute(IMPORTER)
429
429
return VIEW_PATH ;
430
430
}
431
431
432
- @ RequestMapping (VIEW_PATH )
432
+ @ RequestMapping (VIEW_PATH + ".form" )
433
433
public void view (@ ModelAttribute (IMPORTER )
434
434
PackageImporter importer , @ ModelAttribute (ITEMS_STATS )
435
435
ImportedItemsStats stats , @ ModelAttribute (PARTS )
@@ -444,7 +444,7 @@ public void view(@ModelAttribute(IMPORTER)
444
444
model .addAttribute (ITEMS_STATS , itemsStats );
445
445
}
446
446
447
- @ RequestMapping (value = COMPLETE_PATH )
447
+ @ RequestMapping (value = COMPLETE_PATH + ".form" )
448
448
public String complete (@ ModelAttribute (IMPORTER )
449
449
PackageImporter importer , Errors errors , Model model , SessionStatus session ) {
450
450
Task task = importer .schedulePackageImport ();
@@ -573,7 +573,7 @@ public void assessItem(@ModelAttribute(ITEMS)
573
573
model .addAttribute (assessItemForm );
574
574
}
575
575
576
- @ RequestMapping (value = ITEM_PATH , method = RequestMethod .GET , params = "uuid" )
576
+ @ RequestMapping (value = ITEM_PATH + ".form" , method = RequestMethod .GET , params = "uuid" )
577
577
public void assessItem (@ ModelAttribute (ITEMS )
578
578
List <ImportedItem > items , Integer index , String uuid , Model model ) {
579
579
ImportedItem importedItem = items .get (index );
@@ -589,7 +589,7 @@ public void assessItem(@ModelAttribute(ITEMS)
589
589
assessItem (items , index , model );
590
590
}
591
591
592
- @ RequestMapping (value = ITEM_PATH , method = RequestMethod .POST )
592
+ @ RequestMapping (value = ITEM_PATH + ".form" , method = RequestMethod .POST )
593
593
public String assessItemPOST (@ ModelAttribute (ITEMS )
594
594
List <ImportedItem > items , AssessItemForm assessItemForm , Model model ) {
595
595
ImportedItem importedItem = items .get (assessItemForm .getIndex ());
0 commit comments