Details
-
Bug
-
Resolution: Timed out
-
Low
-
None
-
4.2
-
4.02
-
Severity 3 - Minor
-
-
Description
In 4.2 we force people to restore that data from the "$JIRA_HOME/import" directory. If someone types in a file with a path "/this/path/doesnot/exists.xml" JIRA will actually try to restore "$JIRA_HOME/import/exists.xml". If the user types in a file with a path I would expect JIRA to give you an error saying "we only import files from JIRA.HOME blah blah ... <a href="cac/howto/import">import</a>....".
We also have the same problem on the "SetupImport" screen, however, its behavior is slightly different. It still lets you type in a path to restore a file. For example if the user types in /this/path/doesnot/exists.xml JIRA will:
- Try to find /this/path/doesnot/exists.xml.
- [BUG] If this does not exist, try $JIRA_HOME/import/exists.xml.
To me this is what should happen when the user types in $FILE:
- Try to find $FILE
- If this does not exist and $FILE has no path then try $JIRA_HOME/import/$FILE
- If was unable to find file, then report to the user all files that we tried to locate.