github melosso/portway v0.14.0

one hour ago

Caution

Evaluate before upgrading production. This release changes responses of SQL, static, file, proxy and webhook endpoints. Check each item under Before you upgrade.

Version v0.14.0 validates OData options on SQL endpoints, static endpoints and file lists, and adds paging to file lists and filtered static content.

Before you upgrade

  1. Remove unsupported OData options from requests to SQL endpoints, static endpoints and file lists.
  2. Use public column names in $filter and $orderby on SQL endpoints with column aliases.
  3. Read static JSON endpoints with EnableFiltering as a collection.
  4. Expect 502 from proxy endpoints if the connected service returns 401 or 403.
  5. Set DedupeKey: BodyHash for webhook senders that change the body between retries.

Changes

  • Feature: Static JSON endpoints with EnableFiltering return value, count and nextLink for every GET. The default page size is 10 items. $count=true adds the total number of matching items.
  • Feature: File lists are sorted by file name and accept $top and $skip. Without $top, the list contains every file.
  • Feature: The HTTP methods reference documents the result of a repeated write per endpoint type.
  • Feature: Added HMACv2 environment authentication. Signatures include the query string and are accepted once within a 5-minute window.
  • Fix: SQL endpoints, static endpoints and file lists return 400 for unsupported OData options such as $search, $apply and $format, options sent twice, negative $top or $skip values, and $count values other than true or false. The same rules apply to the fields of a QUERY request body. Proxy endpoints send OData options to the connected service unchanged.
  • Fix: Static endpoints without EnableFiltering return 400 for OData options.
  • Fix: SQL endpoints accept the public name of an aliased column in $filter and $orderby, and return 400 for the database name. For "Name;CountryName" in AllowedColumns, $filter=CountryName eq 'x' is valid.
  • Fix: Proxy endpoints return 502 if the connected service returns 401 or 403. The error field contains the upstream status. The response excludes the upstream body and the WWW-Authenticate header.
  • Fix: Composite endpoints return 502 if a step receives 401 or 403. The statusCode field contains the upstream status.
  • Fix: SQL endpoints return 503 for PUT, PATCH and DELETE if the database is unreachable. The response contains a trace ID.
  • Fix: Database errors on SQLite endpoints log the SQLite error code.
  • Fix: Webhook endpoints with Deduplicate: true return 422 for a delivery id sent again with a different body. The stored body is unchanged.
  • Fix: SQL endpoints without $orderby sort by PrimaryKey. Pages from $skip contain each row once.
  • Fix: SQL endpoints with an empty AllowedColumns list log a warning at startup and on reload. GET on these endpoints returns every column.
  • Fix: $count on table-valued function endpoints returns 400.
  • Fix: $top=0 on SQL endpoints returns no next-page link.
  • Fix: Filtered static XML endpoints apply $top=0.
  • Fix: A QUERY request to a static endpoint with top or skip and no other option returns a filtered page.
  • Fix: HEAD on a filtered static JSON endpoint excludes Content-Length.
  • Fix: The OpenAPI document of a composite endpoint without AllowedEnvironments includes the environments from AllowedEnvironments in environments/settings.json.
  • Fix: Saving or renaming an endpoint in the console returns an error if its namespace gets the /docs title of another namespace. For endpoint files with a shared title, startup logs a warning and the OpenAPI document uses the namespace paths as group titles.

For comprehensive guides and details, please head over to our documentation.

Full changelog: v0.13.4...v0.14.0

Don't miss a new portway release

NewReleases is sending notifications on new releases.