summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-31Handle `auth=fail`HEADmasterdefanor
Ignore credentials provided by a user, serve documents with status code 401.
2019-03-30Handle `auth=try`defanor
Serve pages with status code 401 if `auth` is set to `try`, but credentials are not present.
2019-03-02Fix a typodefanor
2019-02-20Allow requests without queriesdefanor
Apply a stylesheet to <pgx:no_query /> in that case. This is slightly out of the project scope, but handy in some cases (helps to avoid dummy queries or additional software), and done with a single line change.
2019-02-16Fix the wording in README.mddefanor
2019-02-16Use credentials whenever they are provideddefanor
Not necessarily with auth=on.
2019-02-16Request credentials on password-related failuresdefanor
2019-02-16Handle DB connection failuresdefanor
Provide an error message on those. Also add an error message from libpq when it's available.
2019-02-13Update the "Querying" README.md sectiondefanor
2019-02-11Update READMEsdefanor
- Use XSLT_DIR instead of FCGI_CHDIR in the nginx configuration example, since FCGI_CHDIR is not always available. - Link the "dynamic websites" note as additional documentation.
2019-02-09Handle media-typedefanor
Defaulting to application/xhtml+xml, but the xsl:output media-type attribute can now be set to change that.
2019-02-05Use plain CGIdefanor
This eliminates the last of large Haskell dependencies. The multipart enctype is not supported now.
2019-02-04Remove the wai-extra dependencydefanor
2019-02-04Remove the postgresql-simple dependencydefanor
It pulls Aeson, which is a rather large dependency (as does wai-extra, but it's to be removed too), and its functionality was barely used anyway.
2019-02-04Remove the dependency on envydefanor
It's not that useful for a couple of variables, but an additional dependency.
2019-02-04Use System.Timeout directlydefanor
The previously used Network.Wai.Middleware.Timeout is a part of wai-extra, which has quite a few dependencies. Still depending on it, but this is a step towards reducing the dependencies.
2019-02-03Ignore duplicate parameters in XSLTdefanor
Maybe query parameters should instead be passed to XSLTs as a part of the document to process, but perhaps better to ignore duplicate ones for now.
2019-02-03Lint, clean up dependenciesdefanor
2019-02-03Replace wai-cli with wai-handler-fastcgidefanor
Another step towards making pgxhtml more lightweight, dependencies-wise.
2019-02-03Replace HXT with libxmldefanor
The primary issue is that str:encode-uri function from EXSLT is not available with HXT (but available with libxml's friends: libxslt and libexslt, which are generally more complete). This function is important for HTML documents. Another reason is libxml being better documented and somewhat easier to work with. Yet another reason to switch is the intent to avoid dependencies that reimplement common functionality, and/or normally get statically linked.
2019-01-15Improve error messagesdefanor
- ResultError gets handled now - No plain textual messages anymore - An XML namespace is set, though an experimental one Maybe the serialization should be changed to simplify templating. It would also be nice to specify the schema (e.g., with relax ng), host it, and use its URI for the namespace.
2019-01-13Handle FormatError and QueryErrordefanor
In addition to SqlError. ResultError handling should be added as well, and perhaps the resulting XML should be refined.
2019-01-09Update READMEdefanor
Add a security checklist, link automatic-api.
2018-12-30Initial commitdefanor
The initial working version, an example, and brief description are included. Error handling and reporting, perhaps HTTP headers, CLI arguments, and documentation can still be improved, but that's for future commits.