Skip to content
Success

Changes

Summary

  1. Improved WADL URL guessing. (details)
  2. Added lab (default) profile for default endpoints (details)
Commit 03f15f4f77838fcc3ff2076ea70f7d0ee18c55a4 by Thorsten Vitt
Improved WADL URL guessing.

For some strange reason, the port is missing from the UriInfo record,
but only on the production server. This fix introduces some attempts to
guess the URI, it also adds the WADL uri to the bottom of the help
screen. For this to work, you need either (or both) of the following
lines in the nginx config:

    proxy_set_header        X-Original-Request-URI $scheme://$host$uri;
    proxy_set_header        Host $proxy_host;

The first one adds a proprietary header with the full "external" request
URI, the second fixes the standard Host: http header to include the port
(which is somehow missing in the nginx default). If the
X-Original-Request-URI header is present and works (i.e. -> 200 OK), it
is used, using this method you will also get a useful link at the bottom
of the help page.
The file was modifiedsrc/main/java/info/textgrid/services/aggregator/REST.java
The file was modifiedsrc/main/webapp/WEB-INF/stylesheets/wadl_documentation-2009-02.xsl
The file was modifiedsrc/main/java/info/textgrid/services/aggregator/Help.java
The file was modifiedsrc/main/java/info/textgrid/services/aggregator/Version.java
Commit 7266267d3125fcd714a8949e66fd71d023b66435 by Thorsten Vitt
Added lab (default) profile for default endpoints
The file was modifiedpom.xml