The preExecution data field can cause links to the pattern log to become too long. It Causes error in browser: java.lang.IllegalArgumentException: Request header is too large


Description

When preExecution data for a pattern is sufficiently long, the link used to transfer to the pattern log will cause error:

java.lang.IllegalArgumentException: Request header is too large

This is preventing access to the pattern log.



Steps to Reproduce

Open discovery status, in discovery log, on "To Check Pattern Log Press Here", click on it. It will link to this long URL which gives error:


https://{my instance name here}.service-now.com/$sw_horizontal_discovery_log.do?discoLogId=e7d7e1dd1b1ea810350b0edddc4bcb48&saDiscoLogSysId=6bd7a1dd1b1ea810350b0edddc4bcb9f&ipAddress=westus&pid=&preExecution=ewogICJidWlsZF9yZWxhdGlvbl9hdXRvIiA6ICJ0cnVlIiwKICAiaG9zdGVkX3JlbGF0aW9uX3R5cGUiIDogIkhvc3RlZCBvbjo6SG9zdHMiLAogICJob3N0ZWRfcmVsYXRpb25faWQiIDogIjVmOTg1ZTBlYzBhODAxMGUwMGE5NzE0ZjJhMTcyODE1IiwKICAiYWNjb3VudF9pZCIgOiAiODg5ZTNlNGQtMDU2Mi00MTI1LWIyZGUtM2JkZjE4ZWU3YzA5IiwKICAibGRjX2lkIiA6ICJmMzZlMmQ0NjFiOGEyNDUwMzUwYjBlZGRkYzRiY2I5YiIsCiAgImlucHV0X29iamVjdF9pZCIgOiAiL3N1YnNjcmlwdGlvbnMvODg5ZTNlNGQtMDU2Mi00MTI1LWIyZGUtM2JkZjE4ZWU3YzA5L3Jlc29UkdfQ2xvdWRzZXJ2aWNlc19zZXJ2aWNlbm93X2Rpc2NvdmVyeV90ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMvc3RzbnRlc3Rub3dcIixcIm1lc3NhZ2VcIjpcIk1pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy93cml0ZVwiLFwiaGllcmFyY2h5XCI6XCI4MjU1MWExMi1iYmM4LTRmZWQtOGI3Zi0yYjc1ODI4NGI1ZWEvTUdNVEdSUENvbGVzQ2xvdWRTZXJ2aWNlc1BsYXRmb3JtL01HTVRHUlBDb2xlc0Nsb3VkU2VydmljZXNOb25Qcm9kdWN0aW9uLzg4OWUzZTRkLTA1NjItNDEyNS1iMmRlLTNiZGYxOGVlN2MwOVwifSxcInJlc291cmNlSWRcIjpcIi9zdWJzY3JpcHRpb25zLzg4OWUzZTRkLTA1NjItNDEyNS1iMmRlLTNiZGYxOGVlN2MwOS9yZXNvdXJjZWdyb3Vwcy9SR19DbG91ZHNlcnZpY2VzX3NlcnZpY2Vub3dfZGlzY292ZXJ5X3Rlc3RpbmcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdHNudGVzdG5vd1wiLFwicmVzb3VyY2VHcm91cE5hbWVcIjpcIlJHX0Nsb3Vkc2VydmljZXNfc2VydmljZW5vd19kaXNjb3ZlcnlfdGVzdGluZ1wiLFwicmVzb3VyY2VQcm92aWRlck5hbWVcIjpcIk1pY3Jvc29mdC5TdG9yYWdlXCIsXCJzdGF0dXNcIjpcIlN1Y2NlZWRlZFwiLFwic3ViU3RhdHVzXCI6XCJcIixcInN1YnNjcmlwdGlvbklkXCI6XCI4ODllM2U0ZC0wNTYyLTQxMjUtYjJkZS0zYmRmMThlZTdjMDlcIixcInN1Ym1pc3Npb25UaW1lc3RhbXBcIjpcIjIwMjEtMDItMTJUMDQ6Mjg6MDAuMTkyNTQxOCswMDowMFwiLFwicmVzb3VyY2VUeXBlXCI6XCJNaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHNcIn19Igp9&host_sys_id=f36e2d461b8a2450350b0edddc4bcb9b&host_name=West%20US&patternId=f9b2bf3cdbf51810b2a1f9627596191a&patternName=Azure%20Storage%20Account%20Event&patternType=3&isCloud=true&isHistoricalLog=true


The preExecution section in the URL is very long.

Workaround

Workaround is to remove the "preExecution" data from the URL, then the URL will work and open the pattern log. 


Related Problem: PRB1480392