Open b20hanwa opened 2 years ago
current progress: The html file [[generic_dugga_file_receive.html]] is built the same way all other duggor are. nothing special about it.
[[generic_dugga_file_receive.js]] uses 3 function calls before breaking.
setup() a ajaxService call which receives specificed hardcoded sql queries. submissons is never called or placed in data.
AjaxService calls returnedDugga(data)
returnedDugga(data) defines duggaParam as below: duggaParams = jQuery.parseJSON(data['param']); calls createFileUploadArea(fileUploadfiled) problem in function call uses duggaParam["submissons"] as a paramenter duggaParam["submissons"] is undefined.
createFileUploadArea(fileUploadfiled) uses fileUploadfiled.lenght for a loop. call is undefined -> cannot read lenght function crashes.
will continue to see where/how duggaParam["submisson"] can be defined.
spent last two days looking for datatype and what is expected from dataParam["submissions"] however nothing clear. contains dataParam["submissions"].type and dataParam["submissions"].filename
no clear info on what datatype or what generally is supposed to be there. comments/documentation is not helpfull in the slightest
[submissions] is never defined and thereby cannot use that info to find, will look at createFileUploadArea(fileUploadfiled) to find more info on intended use of variable
is the main problem area. it is the first time dataparam["submissions"] is used for a loop however not the last.
when defined. the popups appear however cannot find where the info should be recieved from, ajaxService does not call on it.
duggaParam["submissions"] is an array where each index contains 2 variables.
*duggaParam["submissions"][index].filename is a string
used as id for html tags and positions.
mainly for tags identification
duggaParam["submissions"][index].instruction
innerHTML for instructions.
used to overrite the duggor instructions for utilizing .
only used 3 times (in generic_dugga_recived.js)
all for one way or another to rewrite instructions for dugga.
seems like showdugga.php cannot find setup() even if it is defined. since undefined/null is continously used it breaks the dugga. issue can affect other parts of the system
Could it be that it crashes if we have not had any data in the configuration for that test.
e.g. that we have not specified that we want to receive a pdf file for example or a pdf and a zip file.
If submissions is not an array we should not iterate, typeof duggaParam['submissions'] should be an array.
This issue is split from issue #11934
The image shows error messages on the file. Might have to do with a problem with the upload functionality.