• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 5758

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2018 04:34AM UTC
Jobs 2
Files 100
Run time 27s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5758

push

travis-ci

buger
Fix whitelist/blacklist regex too broad (#1956)

Fixes https://github.com/TykTechnologies/tyk/issues/1944

```
apiLangIDsRegex := regexp.MustCompile(`{([^}]*)}`)
asRegexStr := apiLangIDsRegex.ReplaceAllString(stringSpec, `([^/]*)`)
```

Basically removing logic of detection end of string. And at the same time modifying tests to do that:
```
v.Paths.WhiteList = []string{"/foo/{fooId}$", "/foo/{fooId}/bar/{barId}$"}
```

Basic idea here that here at Tyk we have backward compatibility policy, and this regexp was here for a few years, so there is chance that some of our customers relied on its "confusing" behavior. Thankfuly it was possible to fix it using "$" at the end of string, to explicitly set end of the string. In case of #1944  bug this trick was not working for urls containing {...}. Goal of this PR in this case can be making {...} groups support addign "$" to the end of URL.

9507 of 15620 relevant lines covered (60.86%)

1.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5758.1 (LATEST_GO=true) 10 Nov 2018 04:35AM UTC 0
60.27
Travis Job 5758.1
2 5758.2 (LATEST_GO=true) 10 Nov 2018 04:34AM UTC 0
60.86
Travis Job 5758.2
Source Files on build 5758
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5758
  • f7c8f699 on github
  • Prev Build on master (#5755)
  • Next Build on master (#5767)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc