consiglionazionaledellericerche / cool-jconon

Online application system for recruitment of staff and other types of employment and training of the National Research Council of Italy.
https://selezionionline.cnr.it
GNU Affero General Public License v3.0
19 stars 19 forks source link

Error on excluding a candidate by RdP user. The operation completes fine. #21

Closed duiliol closed 3 years ago

duiliol commented 3 years ago

Upon excluding a candidate using RdP user, error is thrown, but operation is completed successfully.

Platform log returns the following:

[ERROR] it.cnr.cool.frontOfficeHandler.Log4jHandler:33 - log,{"mappa":{"user":"giovanni.rossi","url":"/rest/application/reject?ajax=true"," application":"","stackTraceAjax":"{\"error\":\"Create user error. Exception: {\n \\"status\\" : \n {\n \\"code\\" : 500,\n \\"name\\" : \\"Internal Error\\",\n \\"description\\" : \\"An error inside the HTTP server which prevented it from fulfilling the request.\\"\n }, \n \n \\"message\\" : \\"10110028 Wrapped Exception (with status template): 10110928 Failed to execute scr ipt '\\/it\\/cnr\\/cool\\/nodes\\/permissions.post.json.js (in repository store workspace:\\/\\/SpacesStore\\/Company Home\ \\/Data Dictionary\\/Web Scripts)': Node does not exist: versionStore:\\/\\/version2Store\\/a555f174-01e4-467a-b894-96fb973e6e1a ( status:null)\\", \n \\"exception\\" : \\"\\",\n \n \\"callstack\\" : \n [ \n \t \n ],\n \n \\"server\\" : \\" Community v7.0.0 (rdf924796-blocal) schema 14,002\\",\n \\"time\\" : \\"Nov 11, 2021, 12:54:37 PM\\"\n}\n\n\"}"},"typeDocument":" log","codice":1,"testo":"error - ","ajax":{"type":"POST","data":"nodeRef=43640b15-9769-4358-8a29-ebb15980d70b&nodeRefDocumento=45cb5e9c-2c8 5-4736-9f9e-8dfd2ffc03e4%3B1.0","contentType":"application/x-www-form-urlencoded; charset=UTF-8","processData":true},"Date":"11/11/2021 – 1 3:54:37","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 E dg/95.0.1020.44","IP":"172.20.0.6"}

On frontend the following is shown: image

duiliol commented 3 years ago

Additionally, the updated "Esclusa" state for the application is shown only after refreshing the page

mspasiano commented 3 years ago

Hi I can't replicate the bug, you can try again and give me more details, maybe even the server side logs

duiliol commented 3 years ago

Hi, the bug can be replicated as follows:

  1. Log-in with a user that has RdP role for a call
  2. Enter "Domande" section of the call in which the user is RdP
  3. Select an application to be excluded and enter the "Operazioni - Escludi" section for the application
  4. Upload the attachment required for exclusion. Upon pressing OK the following is shown: image
  5. Pressing "chiudi" reveals that the operation has completed successfully: image
  6. The state of the excluded application is not shown as "ESCLUSA" until manually refreshing the page.

In fact, the exclusion procedure works, but it shows the error and requires the page to be refreshed before showing the correct state for the application.

duiliol commented 3 years ago

Upon executing these steps, the only error that is shown in the logs is the following:

2021-11-11 16:57:33,073 ERROR [http-nio-8080-exec-8] Log4jHandler: log,{"mappa":{"user":"giovanni.rossi","url":"/rest/application/reject?ajax=true","application":"","stackTraceAjax":"{\"error\":\"Create user error. Exception: {\n \\"status\\" : \n {\n \\"code\\" : 500,\n \\"name\\" : \\"Internal Error\\",\n \\"description\\" : \\"An error inside the HTTP server which prevented it from fulfilling the request.\\"\n }, \n \n \\"message\\" : \\"10110031 Wrapped Exception (with status template): 10111047 Failed to execute script '\\/it\\/cnr\\/cool\\/nodes\\/permissions.post.json.js (in repository store workspace:\\/\\/SpacesStore\\/Company Home\\/Data Dictionary\\/Web Scripts)': Node does not exist: versionStore:\\/\\/version2Store\\/b553f97a-0d91-4dd5-a052-1ca173bb7b0a (status:null)\\", \n \\"exception\\" : \\"\\",\n \n \\"callstack\\" : \n [ \n \t \n ],\n \n \\"server\\" : \\"Community v7.0.0 (rdf924796-blocal) schema 14,002\\",\n \\"time\\" : \\"Nov 11, 2021, 3:57:33 PM\\"\n}\n\n\"}"},"typeDocument":"log","codice":1,"testo":"error - ","ajax":{"type":"POST","data":"nodeRef=12e4083f-0b5f-44c7-9786-d5aba85455d8&nodeRefDocumento=2793b26b-afae-465a-b74c-ad29c1bc7d39%3B1.0","contentType":"application/x-www-form-urlencoded; charset=UTF-8","processData":true},"Date":"11/11/2021 – 16:57:33","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.44","IP":"172.20.0.6"}

mspasiano commented 3 years ago

Closed on version 4.9.29