brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <>
Subject [GitHub] brooklyn-docs pull request #148: Adds doc for urlEncode DSL
Date Thu, 09 Feb 2017 15:55:32 GMT
Github user neykov commented on a diff in the pull request:
    --- Diff: guide/yaml/ ---
    @@ -213,6 +213,9 @@ concise DSL defined here:
     * `$brooklyn:formatString("pattern e.g. %s %s", "field 1", "field 2")` returns a future
which creates the formatted string
       with the given parameters, where parameters may be strings *or* other tasks such as
    +* `$brooklyn:urlEncode("val")` returns a future which creates a string with the characters
    +  so it is a valid part of a URL. The parameter can be a string *or* another task. For
    +  `$brooklyn:urlEncode($brooklyn:config(\"mykey\"))`
    --- End diff --
    Let me repeat my concerns about this functionality here - see
    At the very least can you document that this is meant only for query parameters. While
not perfect it can do the job until improved. The various parts of the URL have different
rules for escaping so this won't work universally.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message