Closed elodieburtin closed 5 years ago
Note : First generated request is
SELECT a.id as id, ai.original_filename as originalfilename
FROM algo_annotation a , algo_annotation_term aat, algo_annotation_term aat2
WHERE true
AND a.id = aat.annotation_ident
AND a.id = aat2.annotation_ident
AND aat.id <> aat2.id
AND aat.term_id <> aat2.term_id
AND a.project_id = 333
AND a.user_id IN (907018)
ORDER BY a.id desc
a join with image instance table is missing
When requesting
GET /api/annotation.json?project={idProject}&showImage=true&multipleTerm=true&users={idUserJob}
orGET /api/annotation.json?project={idProject}&showImage=true&noTerm=true&users={idUserJob}
, the system replies with a Grails Runtime Exception.If removing query parameter
showImage=true
, it works fine. However, it fails again if addingshowUser=true
(did not test all others parameters though). The issue only appears if theusers
query parameter includes userJobs, there is no issue with regular users.Stack Trace for
GET /api/annotation.json?project={idProject}&showImage=true&multipleTerm=true&users={idUserJob}
:Stack trace for
/api/annotation.json?project={idProject}&noTerm=true&users={idUserJob}&showUser=true
: