Closed casesp closed 9 years ago
@casesp as a reference point, the special characters that are not allowed in production type names are: comma , doubletick " singletick ' slash \ This is under discussion in #5
@casesp kick this back to me if you do find that one of the 4 special characters is a production type name. I am not certain what exactly else would be failing a special character, but it needs to fail it more nicely than a yellow screen.
@missyschoenbaum The special characters listed are not found in the file or within the filename used. So the error message confusion still stands. Why did this attempt fail? It used to work in RC5.1, and it works in NAADSM 3.2.19
I'm closing this issue...I believe it is issue #510 that is the real culprit in this case.
This issue is for: ADSM_3.2.22-RC5.2 build 7e47384
I tried to import a legacy scenario from NAADSM 3.2.19 (exported to XML) and recieved the following error messages: (It says something about special characters in the filename, I think. The filenames are: "Turkey 3.2.19 partial units scenario file.xml" and "Turkey 3.2.19 partial units unit file.xml" No special characters here.)
The data from these files (different filenames previously) did import into previous builds of ADSM.
Capture of debug messages follows:
ValueError at /app/ImportScenario/ Special characters are not allowed: Turkey 3.2.19 partial units scenario file with Turkey 3.2.19 partial units unit file Request Method: POST Request URL: http://127.0.0.1:8000/app/ImportScenario/ Django Version: 1.7.1 Exception Type: ValueError Exception Value:
Special characters are not allowed: Turkey 3.2.19 partial units scenario file with Turkey 3.2.19 partial units unit file Exception Location: C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\ADSMSettings\models.py in scenario_filename, line 77 Python Executable: C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\adsm.exe Python Version: 3.4.2 Python Path:
['C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\adsm.exe', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\adsm.zip', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\library.zip', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\DLLs', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\plat-win', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\lib-tk', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\bin', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Scripts', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\cx_Freeze-4.3.4-py3.4-win-amd64.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\numpy-1.9.1-py3.4-win-amd64.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\pip-1.5.6-py3.4.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\pywin32-219-py3.4-win-amd64.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src'] Server time: Wed, 8 Apr 2015 14:20:40 +0000 Traceback Switch to copy-and-paste view
C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\django\core\handlers\base.py in get_response response = wrapped_callback(request, _callback_args, *_callback_kwargs) ... ▶ Local vars C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\ADSMSettings\views.py in import_naadsm_scenario return run_importer(request) ... ▶ Local vars C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\ADSMSettings\views.py in run_importer import_legacy_scenario(param_path, popul_path) ... ▶ Local vars C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\ADSMSettings\views.py in import_legacy_scenario scenario_filename('%s with %s' % names_without_extensions) ... ▶ Local vars C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\ADSMSettings\models.py in scenario_filename raise ValueError("Special characters are not allowed: " + new_value) ... ▶ Local vars Request information
GET No GET data POST No POST data FILES Variable Value parameters_xml
<_io.TextIOWrapper name='<TemporaryUploadedFile: Turkey 3.2.19 partial units scenario file.xml (text/xml)> population_xml
<TemporaryUploadedFile: Turkey 3.2.19 partial units unit file.xml (text/xml)> COOKIES No cookie data META Variable Value CONTENT_LENGTH
'6731920' wsgi.url_scheme 'http' SERVER_PROTOCOL 'HTTP/1.0' SERVER_PORT '8001' HTTP_REFERER
'http://127.0.0.1:8000/app/ImportScenario/' wsgi.errors