Commit Graph

4 Commits

Author SHA1 Message Date
David Anderson db0977090d client: fix bug that broke HTTP GUI RPC for authenticated ops
electron sample GUI: add support for starting the client,
and for attaching a project
2019-11-19 17:22:54 -08:00
David Anderson 1858d1ed51 Make the electron-based GUI work again.
RPC requests need to be enclosed in <boinc_gui_rpc_request>.
I'm not sure how it ever worked.

Also: improve GUI RPC error reporting in the client.
2019-11-06 21:17:53 -08:00
David Anderson d5c9a7b362 Client: fix bugs in HTTP GUI RPC
- change seqno only on authenticated request,
  so that bad guys make a bunch of bad calls and lock out actual calls
- Fix %ld format for long
  (seqnos are long in case GUI makes > 2B calls)
- Print message if validation fails
- end of HTTP header is marked by \r\n\r\n, not \n\n

Also put some error checking into the client-side Javascript.
E.g. things should still work if password file is absent;
you just can't make RPCs that require authentication.
Much work still to be done here.
2019-06-26 20:45:47 -07:00
David Anderson 63860bd95f Add files for rudimentary Electron GUI 2019-06-21 16:22:55 -07:00