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

TykTechnologies / tyk / 6005 / 2
62%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 15 Jan 2019 03:55PM UTC
Files 82
Run time 13s
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

15 Jan 2019 03:52PM UTC coverage: 61.05% (+0.5%) from 60.527%
LATEST_GO=true

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.

(cherry picked from commit f7c8f6992)

8939 of 14642 relevant lines covered (61.05%)

0.68 hits per line

Source Files on job 6005.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 15
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5493
  • Travis Job 6005.2
  • 3cd806a7 on github
  • Prev Job for LATEST_GO=true on release-2.8 (#6004.1)
  • Next Job for LATEST_GO=true on release-2.8 (#6006.2)
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

© 2026 Coveralls, Inc