Closed giordano closed 2 years ago
To illustrate, here is a sample log of a file named with spaces.atf
:
[nisaba] info: Request 2rwE3x is done.
[nisaba] info: request.log
[nisaba] info: oracc-exec.sh[2]: 2rwE3x /tmp/datayJaljQ atf cams/gkab 00atf/with spaces.atf
oracc-exec.plx[v001]: 2rwE3x /tmp/datayJaljQ atf cams/gkab 00atf/with spaces.atf
oracc_exec: pwd=/home/oracc/tmp/sop/2rwE3x
xsystem /home/oracc/sbin/osc-create.sh 2rwE3x cams/gkab
tempdir=/home/oracc/tmp/sop/2rwE3x; projdir=/home/oracc/cams/gkab
create_project cams/gkab
chmod: cannot access 'cams/gkab': No such file or directory
/home/oracc/sbin/osc-create.sh: line 8: cd: cams/gkab: No such file or directory
/home/oracc/tmp/sop/2rwE3x
ls: cannot access 'cams/gkab/01bld': No such file or directory
cams/gkab/01bld is not a link ... autofixing ...
cbd after removing link dirs
ls: cannot access '02www/cbd': No such file or directory
xsystem unzip /tmp/datayJaljQ
Archive: /tmp/datayJaljQ
inflating: 00atf/with spaces.atf
xsystem /home/oracc/bin/ox -l /home/oracc/tmp/sop/2rwE3x/oracc.log -cvmD 00atf/with
xsystem zip -j /home/oracc/tmp/sop/2rwE3x/response.zip /home/oracc/tmp/sop/2rwE3x/request.log /home/oracc/tmp/sop/2rwE3x/oracc.log
adding: request.log
[nisaba] info: oracc.log
[nisaba] info:
[nisaba] info: ATF validation returned no errors.
The oracc.log
file is empty, which is how we identify successful validation.
In the case of lemmatisation, the file only has one line with part of the file name, until the first space (normally, it would have the full file name). We still identify that as no errors, which does have to do with our parsing, but I suspect that line is malformed and not intentional.
Describe the problem
If an ATF file has spaces in its basename, running validation or lemmatisation on it never returns errors. This is likely a server-side issue, but we should be able to mitigate it on our side.
To Reproduce
Create an ATF with this content:
and filename
filename with spaces.atf
. Run validation: the "Validation successful" pop up is always shown, even though there are errors.Expected behavior
Get the "Validation identified errors. See log for details" pop up
Additional context
The symptoms are similar to #89. The cause may be the same or similar (maybe
get_validation_errors
is similarly not able to correctly parse the errors), but we need a reproducer for that one to confirm.