You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/06/25 22:03:41 UTC

[GitHub] dangogh opened a new issue #2465: TO Go API: .../profile/name/x/parameters does not check for missing keys

dangogh opened a new issue #2465: TO Go API: .../profile/name/x/parameters does not check for missing keys
URL: https://github.com/apache/trafficcontrol/issues/2465
 
 
   had a parameters.json with content like this:
   ```
   [
     {
        "name" : "foo",
        "value": "value for foo",
        "config_file" : "some.config"
     }
   ]
   ```
   
   The key should be `configFile`,   not `config_file`.    Perl endpoint catches it (although with a poorly worded message).   Go endpoint dies with a 500 (internal error) and this sql message in the log:
   ```
   ERROR:  ON CONFLICT DO UPDATE command cannot affect row a second time
   HINT:  Ensure that no rows proposed for insertion within the same command have duplicate constrained values.
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services