Project

General

Profile

Actions

Bug #946

open

Need better error checking in uploadTemplate.php

Added by Amber Herold over 13 years ago. Updated over 13 years ago.

Status:
In Code Review
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
10/15/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.0.2
Show in known bugs:
No
Workaround:

Description

Comments from Pick-wei:
It works for uploading mrc file. However, it does not say that it requires the file to be mrc on the submission form and if a different file type is given, there is no check and no error report. Also, if the template already exist, it doesn't convey the message back to the user. The user has to check the log file to know that the template wasn't uploaded because there is already one in the database


Related issues 1 (1 open0 closed)

Related to Appion - Test Case #932: Test uploadTemplate.phpFail10/13/201010/15/2010

Actions
Actions #1

Updated by Amber Herold over 13 years ago

  • Assignee set to Arne Moeller

Arne, this should be a good one for you or Lauren.

Actions #2

Updated by Arne Moeller over 13 years ago

  • Status changed from New to In Code Review
  • Assignee changed from Arne Moeller to Amber Herold

Now it says which format is required.
I also changed it for upload stack and upload model where the issue was basically identical

Actions #3

Updated by Amber Herold over 13 years ago

looks like this is r15145

Actions #4

Updated by Amber Herold over 13 years ago

  • Assignee changed from Amber Herold to Arne Moeller

Arne, any chance you could investigate adding error checking for the other things Pick-wei suggested?
1. It tells the user that it needs to be Imagic now, but could you also check the file that the user enters - either check that the name ends with .mrc (ore whatever else is acceptable) or if there is a function that can be used to ensure the format is correct.
2. Check to see if the template already exists in the DB and tell user if it does. (this one might be a bit more complicated, but worth a look to see what it will take to implement)

Actions #5

Updated by Amber Herold over 13 years ago

r15143

Actions #6

Updated by Amber Herold over 13 years ago

  • Status changed from In Code Review to Closed
  • Target version changed from Appion/Leginon Future Version to Appion/Leginon 2.2.0
  • Deliverable set to 2.2 Bug Reduction
Actions #7

Updated by Amber Herold over 13 years ago

  • Status changed from Closed to In Code Review
Actions #8

Updated by Arne Moeller over 13 years ago

  • Assignee changed from Arne Moeller to Pick-Wei Lau

I will work on the error checking for the filename
concerning the duplicate template name - then name for the template is generated including a time stamp and I do not see many occasions when this actually can cause a duplicated filename and thus might be a problem - I never encountered any problems with that and do not think it is worth spending time on that.
Since Pick Wei submitted the bug he probably has some examples when this actually happend.
So I bounce this bug back to him

Actions

Also available in: Atom PDF