gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.51k stars 373 forks source link

Make rpc serialization chunk size configurable #9961

Closed codemasterover9000 closed 4 months ago

codemasterover9000 commented 4 months ago

Make the RPC chunk size configurable through a system property gwt.rpc.maxPayloadChunkSize. This allows implementors to circumvent the RPC protocol version to fallback to version 7 on large payloads. Which in the current client implementation uses unsafe javascript eval, preventing proper operation on sites with CSP's restricting unsafe-eval.

Fixes https://github.com/gwtproject/gwt/issues/9578

niloc132 commented 4 months ago

Looks like tests weren't run on this PR, or even compiled? I'll submit a followup to correct the compile error...

niloc132 commented 4 months ago

@codemasterover9000 PTAL https://github.com/gwtproject/gwt/pull/9963

codemasterover9000 commented 4 months ago

Yeah sorry I assumed that the tests would run automatically after commit. I only tested the compile of the single file from intellij. As I can not get GWT te compile anymore using ant after updating the project. I should have mentioned that though... sorry about that.