Notes agent stopped executing line commands in print html

Good morning !

I have an hcl domino agent that is executed via js action in the form.

a few days ago the agent simply no longer interprets commands in js

Print "<script>"
Print "setTimeout(function() { alert('test'); }, 3000);"
Print "</script>"

What could it be?

Server :Release 14.0FP1

131.0.6778.205

the agent executes the entire script but ignores the writing in print "<script></script>" in html

the above command is not shown the prompt

Thank you in advance for your help !
 

In my opinion there's an error / Exit Sub above so the agent doesn't even reach that code.

Have you tried with a simple MsgBox "test" to understand if those lines are actually reached? You will see the output in the Domino console.

yes the lines are displayed on the console,
The subs are executed without error.
In my opinion, it is more of a security change to the agent or environment

I have already tested the command on the agent, being the first one before any sub.

That's weird.

Since Print-ed lines can also be headers, have you checked the whole response to see if the <script> block is sent together with the response headers?
If that's the case, you should be able to fix it by printing an empty line before the Print "<script>"

Hi Vinicius Dantas,

We have followed the below steps in our test environment but we could not reproduced the issue in our test environment.

1. We have created a sample agent and written the below code.

------
Print "<script>"
Print "setTimeout(function() { alert('test'); }, 3000);"
Print "</script>"
-----------------

2. Used the following URL in the Edge browser, http://192.168.1.5/Test.nsf/JSTEST?OpenAgent"

3. "test" message once agent executed.

We would request you to provide the following information. We will investigate further and will provide our investigation details with you.

1. Since when you are facing the issue?

2. Could you please provide exact working environment?

3. You current Domino Server is 14.0 FP1

We would greatly appreciate it if you could provide the above details so that we can investigate the issue further.

Thank you very much