tyk-operator icon indicating copy to clipboard operation
tyk-operator copied to clipboard

[TT-4615] environmet.Env.Parse doesnt return errors on bad data

Open oneEyedSunday opened this issue 3 years ago • 3 comments

⚠️ ⚠️ ⚠️ environmet.Env.Parse is documented as returning errors on failure to validate. In reality, it doesn't return an error and callers have to further validate by themselves see 1, 2

⚠️ ⚠️ ⚠️

Expected Behavior

environmet.Env.Parse docs should remove phrases insinuating that it returns errors on validation.

Additional Context

Current behaviour will remain unchanged. At some point in the past, it did return errors, see

oneEyedSunday avatar Feb 09 '22 06:02 oneEyedSunday

@oneEyedSunday thank you for raising this issue! We will check for potential fixes for it. Let's keep this issue open until then. Again, thanks!

buraksekili avatar Feb 11 '22 09:02 buraksekili

It seems there is typo in the package name environmet which should probably be environment.

tzzed avatar Mar 01 '22 21:03 tzzed

Well at this point that's basically a feature. It's ingrained into the whole application

On Tue, 1 Mar 2022, 22:27 touk, @.***> wrote:

It seems there is typo in the package name environmet which should probably be environment.

— Reply to this email directly, view it on GitHub https://github.com/TykTechnologies/tyk-operator/issues/392#issuecomment-1055876725, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDNOO4BI3CAZNT5RIRRVZLU52DT5ANCNFSM5N4QW6XA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

oneEyedSunday avatar Mar 01 '22 21:03 oneEyedSunday

Thank you for raising this issue to us. The fix will be available in release 0.15.1

caroltyk avatar Aug 18 '23 07:08 caroltyk