Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix unhandled exceptions in port-scanner. (eclipse#281) #315

Merged
merged 2 commits into from
Jul 12, 2019

Conversation

monaka
Copy link
Member

@monaka monaka commented Jul 1, 2019

Signed-off-by: Masaki Muranaka monaka@monami-ya.com

What does this PR do?

Fixes a bug in ports-plugin caused on specific K8s clusters.

In case IPv6 was disabled, /proc/net/tcp6 will not exist.
(Probably IPv4 will be similar.)

What issues does this PR fix or reference?

eclipse-che/che#13749

@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from b6bc200 to d251e67 Compare July 1, 2019 07:34
@monaka
Copy link
Member Author

monaka commented Jul 3, 2019

I checked this patch on my environment in Azure AKS. It works fine.

@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from d251e67 to 00e1db4 Compare July 4, 2019 02:00
@monaka monaka changed the title Fix unhandled exceptions in port-scanner. (eclipse#281) [WIP] Fix unhandled exceptions in port-scanner. (eclipse#281) Jul 4, 2019
@monaka
Copy link
Member Author

monaka commented Jul 4, 2019

@benoitf I pushed the patch a749fe2 based on my comment above.
Are there special reasons to call cat?
Generally it's better if scripts were no dependency to any external commands, IMO.

@benoitf
Copy link
Contributor

benoitf commented Jul 4, 2019

@monaka you're right, no reason to use cat at all and I agree with you on using fs

@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from 00e1db4 to fb238b7 Compare July 5, 2019 04:26
@monaka monaka requested a review from evidolob as a code owner July 5, 2019 04:26
@monaka monaka changed the title [WIP] Fix unhandled exceptions in port-scanner. (eclipse#281) Fix unhandled exceptions in port-scanner. (eclipse#281) Jul 5, 2019
@monaka
Copy link
Member Author

monaka commented Jul 5, 2019

@benoitf Thanks for your comment. I made new patch using fs package and force-pushed here. I tested it by Jest in plugins/ports-plugin.

I'm going to test on my Che instance.

@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from fb238b7 to 476caf4 Compare July 7, 2019 03:31
@musienko-maxim
Copy link

Can one of the admins verify this PR?

@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from 476caf4 to d9b5fdf Compare July 9, 2019 05:18
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from d9b5fdf to df64477 Compare July 9, 2019 05:27
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
@monaka monaka force-pushed the pr-fix-unhandled-execption-in-port-scanner branch from df64477 to 1714def Compare July 9, 2019 05:36
@monaka
Copy link
Member Author

monaka commented Jul 10, 2019

@benoitf I pushed some more fixes here and I believe it becomes reviewable quality.

@sunix
Copy link
Contributor

sunix commented Jul 11, 2019

@monaka, @evidolob is going to review this PR. Sorry for delay :)

@evidolob
Copy link
Contributor

This PR also should fix eclipse-che/che#13620

vinokurig pushed a commit that referenced this pull request Apr 6, 2021
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants