Skip to content

Fix maxDeployIdSize and maxRequestIdSize validation#1491

Merged
ssalinas merged 1 commit intoHubSpot:masterfrom
andrhamm:andrew/fix-id-validations
May 8, 2017
Merged

Fix maxDeployIdSize and maxRequestIdSize validation#1491
ssalinas merged 1 commit intoHubSpot:masterfrom
andrhamm:andrew/fix-id-validations

Conversation

@andrhamm
Copy link
Copy Markdown
Contributor

@andrhamm andrhamm commented Apr 6, 2017

From the docs:

Deploy ids over this size will cause deploy requests to fail with 400
Request ids over this size will cause new requests to fail with 400

Example: If maxDeployIdSize is set to 50 and deployId.length() is 50 an error is still thrown:

Deploy id must be less than 50 characters, it is 50 (foobarbizbanghelloworldwhywontmyidworkthisreallyfu)

From the docs:

> Deploy ids *over* this size will cause deploy requests to fail with 400
> Request ids *over* this size will cause new requests to fail with 400

Example: If `maxDeployIdSize` is set to 50 and `deployId.length()` is 50 an error is still thrown:

```
Deploy id must be less than 50 characters, it is 50 (foobarbizbanghelloworldwhywontmyidworkthisreallyfu)
```
@ssalinas ssalinas modified the milestones: 0.15.0, 0.16.0 Apr 28, 2017
@ssalinas ssalinas merged commit 7d7add7 into HubSpot:master May 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants