大家好,我在调用具有特定 URL 长度的 iframe 时遇到了一些问题:完整的 URL 如下:
http://localhost:8080/autorizaciones/pages/administracion/autorizaciones/solicitarAutorizacion.jsf?nkttxms=6175141345567386080&nosjxms =%7B%22formActionURL%22%3A%22crearCotizacion.do%22%2C%22renderSection%22%3A%5B%22%27div_pagina%27%22%2C%22%27mensajes%27%22%5D%2C%22formName%22%3A%22cotizarRecotizarReservarForm%22%2C%22loadMenu%22%3Afalse%2C%22scriptParameters%22%3A%7B%22evalScripts%22%3Atrue%7D%2C%22viewParameters%22%3A%7B%22autorizaciones%22%3A%22%5B%7B%5C%22codigoSistema%5C%22%3A%5C%22SISPE%5C%22%2C%5C%22descripcion%5C%22%3A%5C%22Solicito+autorizacion+descuento+variable+del+5.0%25+para+la%28s%29+clasificacion%28es%29%3A+2226-PAVOS+CONGELADOS+%5C%22%2C%5C%22areaTrabajo%5C%22%3A%5C%22MULTICENTRO%5C%22%2C%5C%22tituloAutorizacion%5C%22%3A%5C%22AUTORIZACION+DESCUENTO+VARIABLE+GERENTE+COMERCIAL+5.0%5C%22%2C%5C%22filtroTipoAutorizacion%5C%22%3A%7B%5C%227%5C%22%3A%5B%7B%5C%22codigoComponente%5C%22%3A23%2C%5C%22valorComponente%5C%22%3A%5C%225.0%5C%22%2C%5C%22soloLectura%5C%22%3Atrue%7D%5D%7D%2C%5C%22filtroUsuariosAutorizadores%5C%22%3A%5B%5C%22FRM1458%5C%22%5D%2C%5C%22dataKeys%5C%22%3A%5B%7B%5C%22label%5C%22%3A%5C%22AREA+TRABAJO%5C%22%2C%5C%22value%5C%22%3A%5C%22101%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22TOTAL+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22925.6999999999999%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22VALOR+APLICAR+DESCUENTO%5C%22%2C%5C%22value%5C%22%3A%5C%22253.4%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+DOCUMENTO%5C%22%2C%5C%22value%5C%22%3A%5C%221104627169%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NOMBRE+CONTACTO%5C%22%2C%5C%22value%5C%22%3A%5C%22OCHOA+VASQUEZ+PABLO+IVAN%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%5D%2C%5C%22secuencial%5C%22%3A1%7D%2C%7B%5C%22codigoSistema%5C%22%3A%5C%22SISPE%5C%22%2C%5C%22descripcion%5C%22%3A%5C%22Solicito+autorizacion+descuento+variable+del+5.0%25+para+la%28s%29+clasificacion%28es%29%3A+1602-CANASTAS+%5C%22%2C%5C%22areaTrabajo%5C%22%3A%5C%22MULTICENTRO%5C%22%2C%5C%22tituloAutorizacion%5C%22%3A%5C%22AUTORIZACION+DESCUENTO+VARIABLE+GERENTE+COMERCIAL+5.0%5C%22%2C%5C%22filtroTipoAutorizacion%5C%22%3A%7B%5C%227%5C%22%3A%5B%7B%5C%22codigoComponente%5C%22%3A23%2C%5C%22valorComponente%5C%22%3A%5C%225.0%5C%22%2C%5C%22soloLectura%5C%22%3Atrue%7D%5D%7D%2C%5C%22filtroUsuariosAutorizadores%5C%22%3A%5B%5C%22KFLOW100%5C%22%5D%2C%5C%22dataKeys%5C%22%3A%5B%7B%5C%22label%5C%22%3A%5C%22AREA+TRABAJO%5C%22%2C%5C%22value%5C%22%3A%5C%22101%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22TOTAL+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22925.6999999999999%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22VALOR+APLICAR+DESCUENTO%5C%22%2C%5C%22value%5C%22%3A%5C%22600.3%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+DOCUMENTO%5C%22%2C%5C%22value%5C%22%3A%5C%221104627169%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NOMBRE+CONTACTO%5C%22%2C%5C%22value%5C%22%3A%5C%22OCHOA+VASQUEZ+PABLO+IVAN%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%5D%2C%5C%22secuencial%5C%22%3A2%7D%5D%22%2C%22backgroundColor%22%3A%22%23F4F5EB%22%2
我知道它的查询字符串上有很多数据,并且在传输大量数据时我应该使用POST 。然而,这就是系统创建它们的方式......在我发现问题之前已经完成了。主要问题是很多模块都依赖于此,更改它会导致无法完成最后期限(下周)。
现在我们在以下 iframe 中使用该 URL:
<iframe name="Contactos" width="100%" height="100%" align="middle" class="tabla_informacion" src="urlAbove" frameBorder="0">
</iframe>
然而,当框架出现时,它只是显示一个空白屏幕,服务器上根本没有触发回调......
现在,如果我们减少 url 长度它可以正常工作。乍一看,我以为是jBOSS AS 6上的标头长度问题(默认为 8KB),所以我在 server.conf 文件中更改了它,并将其增加到 64KB。一点运气都没有...
但是当我使用Firefox 的 Poster 插件创建带有整个 URL 的 GET 请求时,它可以正常工作并且触发了服务器断点,这意味着它不是服务器的问题,至少在当前的 URL 长度下......
也许是浏览器限制?(我们正在使用 Internet Explorer ...)这是一个已知问题吗?或者在调用 iFrame 时我可能缺少一些东西?