From 0fb63f4488ad022cdcfbd8dfd223e733454b42f8 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 16 Jun 2017 00:34:35 +0200 Subject: [PATCH 1/2] fix(webui): don't fail when backend or frontend are empty. --- webui/src/app/core/providers.resource.js | 51 +++++++++++++----------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/webui/src/app/core/providers.resource.js b/webui/src/app/core/providers.resource.js index 4754df5e2..e59ceeec7 100644 --- a/webui/src/app/core/providers.resource.js +++ b/webui/src/app/core/providers.resource.js @@ -12,34 +12,37 @@ angular function Providers($resource, $q) { const resourceProvider = $resource('../api/providers'); return { - get: function() { + get: function () { return $q((resolve, reject) => { - resourceProvider.get().$promise.then((rawProviders) => { - for (let providerName in rawProviders) { - if (rawProviders.hasOwnProperty(providerName)) { - if (!providerName.startsWith('$')) { - // BackEnds mapping - let bckends = rawProviders[providerName].backends; + resourceProvider.get() + .$promise + .then((rawProviders) => { + for (let providerName in rawProviders) { + if (rawProviders.hasOwnProperty(providerName)) { + if (!providerName.startsWith('$')) { + // BackEnds mapping + let bckends = rawProviders[providerName].backends || {}; + rawProviders[providerName].backends = Object.keys(bckends) + .map(key => { + const goodBackend = bckends[key]; + goodBackend.backendId = key; + return goodBackend; + }); - rawProviders[providerName].backends = Object.keys(bckends).map(key => { - const goodBackend = bckends[key]; - goodBackend.backendId = key; - return goodBackend; - }); - - // FrontEnds mapping - let frtends = rawProviders[providerName].frontends; - - rawProviders[providerName].frontends = Object.keys(frtends).map(key => { - const goodFrontend = frtends[key]; - goodFrontend.frontendId = key; - return goodFrontend; - }); + // FrontEnds mapping + let frtends = rawProviders[providerName].frontends || {}; + rawProviders[providerName].frontends = Object.keys(frtends) + .map(key => { + const goodFrontend = frtends[key]; + goodFrontend.frontendId = key; + return goodFrontend; + }); + } } } - } - resolve(rawProviders); - }).catch(reject); + resolve(rawProviders); + }) + .catch(reject); }); } }; From fe4d0e95b30ebca9a9b350cab6514c0a9043a3e5 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 16 Jun 2017 11:41:30 +0200 Subject: [PATCH 2/2] Prepare release v1.3.1 --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79046534b..6ec8f4fdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## [v1.3.1](https://github.com/containous/traefik/tree/v1.3.1) (2017-06-16) +[All Commits](https://github.com/containous/traefik/compare/v1.3.0...v1.3.1) + +**Enhancements:** +- **[logs,eureka,marathon]** Minor logs changes ([#1749](https://github.com/containous/traefik/pull/1749) by [ldez](https://github.com/ldez)) + +**Bug fixes:** +- **[k8s]** Use correct type when watching for k8s secrets ([#1700](https://github.com/containous/traefik/pull/1700) by [kekoav](https://github.com/kekoav)) +- **[middleware]** fix: Double compression. ([#1714](https://github.com/containous/traefik/pull/1714) by [ldez](https://github.com/ldez)) +- **[webui]** Don't fail when backend or frontend are empty. ([#1757](https://github.com/containous/traefik/pull/1757) by [ldez](https://github.com/ldez)) + +**Documentation:** +- **[k8s]** Fix capitalization of PathPrefixStrip in kubernetes doc ([#1695](https://github.com/containous/traefik/pull/1695) by [Miouge1](https://github.com/Miouge1)) + ## [v1.3.0](https://github.com/containous/traefik/tree/v1.3.0) (2017-05-31) [All Commits](https://github.com/containous/traefik/compare/v1.2.0-rc1...v1.3.0)