summaryrefslogtreecommitdiff
path: root/src/compiler/GFServer.hs
AgeCommit message (Collapse)Author
2012-11-23gf -server + gfse: show modification time of public grammarshallgren
2012-11-14Add flag --document-root for user with gf --serverhallgren
This can make it easier to test cloud service updates before installing them.
2012-11-08Eliminate warnings about deprecated use of catch and tryhallgren
This is also needed for compatibility with GHC 7.6.
2012-11-06gf -server: make it possible to pass arbitrary flags/options to gf when ↵hallgren
compiling grammars For example, you can add -optimize-pgf: http://localhost:41296/cloud?dir=...&command=remake&-optimize-pgf=&Foods2Eng.gf=&Foods2Swe.gf=
2012-10-23gf -server: introduce command=remake for recompiling previously uploaded ↵hallgren
grammars Also remove some old commented out code.
2012-09-26gf -server: add a GF version info requesthallgren
GF version info can now be obtained from http://localhost:41926/version Also removed some unused imports.
2012-09-25Use the SIO monad in the GF shellhallgren
+ The restrictions on arbitrary IO when GF is running in restricted mode is now enforced in the types. + This hopefully also solves an intermittent problem when accessing the GF shell through the web API provided by gf -server. This was visible in the Simple Translation Tool and probably caused by some low-level bug in the GHC IO libraries.
2012-09-22GFServer.hs: code improvementshallgren
Use a monad in the request handler to make the code a bit more modular and readable.
2012-09-21gf -server: also restrict the paths of uploaded fileshallgren
2012-09-21gf -server: improved security checkshallgren
+ More restrictive limits on which file paths can be downloaded and removed. + Add more extensions to the list of file types that may be removed. In particular, allow documents created by simple translation tool to be removed.
2012-08-01GFServer.hs: binary files can now be uploaded to the cloudhallgren
Karel wants to upload PGF files.
2012-06-12translator: documents can now be saved in the cloudhallgren
some other small fixes
2012-05-28GFServer.hs: apply UTF8 encoding when saving uploaded fileshallgren
This fixes a bug introduced on May 16.
2012-05-27gf -server: remove debug outputhallgren
2012-05-16GFServer.hs: apply UTF8 decoding to all server inputhallgren
2012-02-29PGFService.hs bug fix: pattern match failure in doParsehallgren
doParse was missing a branch for PGF.ParseIncomplete. Also introduced the operator .= to simply the code that builds JSON objects.
2012-02-28gf -server mode: JSONP support for grammar listshallgren
Needed by the translation quiz.
2012-02-24gfse: text mode editing: accept grammars with printname judgementshallgren
But printname judgements are ignored for now. Also fixed an UTF-8 encoding bug when parsing uploaded grammars in gf -server mode.
2012-02-21gfse: edit abstract syntax in text mode with instant syntax error reportinghallgren
This is an experimental feature. It requires server support for parsing and is thus not available while offline, unlike most other editing functionality.
2012-02-13gfse: added a button to go directly from the editor to the minibarhallgren
If there is an error in the grammar, the error message is shown below the grammar instead. Also: GFServer.hs now returns compiler output in a JSON structure instead of as a HTML page.
2012-02-10gfse: stay on the same page when compiling grammarshallgren
The link to the minibar (or compiler errors) are now shown below the grammar on the same page. If you go to the minibar, you only have to press the back button once to get back to the editor. Also some output formatting changes in GFServer.hs.
2012-02-10gfse&minibar: select the right grammar in minibar when invoked from gfsehallgren
The grammar that the user is currently working is now the one shown initially in minibar, instead of the first grammar in alphabetical order. Also GFServer.hs now removes absolute paths to the grammar files on the server in error messages from GF returned to to gfse.
2012-02-01gf -server: better error message for requests with unsupported HTTP methodshallgren
2012-02-01gf -server: fix bug that caused '+' to be converted to ' ' in uploaded grammarshallgren
Fixed buggy workaround for bug in httpd-shed function queryToArguments.
2011-12-14gf -server[=port]hallgren
You can now specify which port the HTTP server should run on in server mode. The default is 41296.
2011-12-14gf -server mode improvementshallgren
+ Avoid looping if it is not possible to create a new server directory. + Work on FastCGI support using the direct-fastcgi package (commented out for now because of buggy behavior).
2011-11-01gfse: grammar sharing: bug fixes and win32 supporthallgren
win32 support is untested
2011-10-12Show version & configuration info when gf -server startshallgren
2011-10-12Bug fixes for gf -server mode and setuphallgren
2011-10-12Improvements of "gf -server" mode and related setuphallgren
"gf -server" mode now contains everything needed to run the minibar and the grammar editor (including example-based grammar writing). The Setup.hs script installs the required files where gf -server can find them. These files have been moved to a new directory: src/www. The separate server program pgf-http is now obsolete.
2011-10-11More work on support for gfse in "gf -server" modehallgren
2011-10-10Add cloud services needed by gfse to "gf -server" modehallgren
2011-10-10More functionality in "gf -server" modehallgren
"gf -server" mode now includes PGF service and the services to support example-based grammar writing. (But gf -server is not quite ready to replace pgf-http yet...) Also bumped GF version number to 3.2.10-darcs
2011-04-13Added a preliminary "gf -server" mode.hallgren
The command "gf -server" now starts a simple HTTP server on port 41295, providing a simple web API to the GF compiler. It currently support the follwing operations: * creating new temporary directories for grammar uploads, * uploading grammars files for use in the GF shell, * executing GF shell commands, and * accessing static files. This means that GF now depends on some additional networking related packages, but they should be available and easy to install on all platforms. There is also a new configuration flag "server" in gf.cabal, so GF will be compiled without support for server mode if the extra packages are unavailable. Note that running gf -server while connected to the internet can be a security risk. To prevent unauthorized access to the rest of the system, it is advisable to run the server in GF_RESTRICTED mode and as a user with suitably restricted file permissions.