AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

Connection issue via Proxy Jump #118

Closed an2riy closed 1 year ago

an2riy commented 1 year ago

During remote connection via Proxy Jump: KO

Connection test failed: java.util.regex.PatternSyntaxException: Stack overflow during pattern
compilation near index 1 [ ] ^

java.lang.StackOverflowError
at java.base/java.util.regex.Pattern.error(Pattern.java:2028)
at java.base/java.util.regex.Pattern.<init>(Pattern.java:1432)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1069)
at java.base/java.lang.String.split(String.java:3151)
at java.base/java.lang.String.split(String.java:3197)
at com.jcraft.jsch.OpenSSHConfig$MyConfig.<init>(OpenSSHConfig.java:187)
at com.jcraft.jsch.OpenSSHConfig.getConfig(OpenSSHConfig.java:148)
at org.elasticsearch4idea.kM.a(SourceFile:72)
at org.elasticsearch4idea.kM.a(SourceFile:85)

During local connection: OK

SSH Config:

Host *
    AddKeysToAgent yes
    LogLevel ERROR
    StrictHostKeyChecking ask
    ForwardAgent yes

Host bastion-internal
    HostName ...
    User ...

Host bastion-aws
    HostName ...
    User ...

Host bastion*
    ControlMaster auto
    ControlPath ~/.ssh/ssh-conn:%n
    ControlPersist 5m

# 0.0.* - the first part of the IP of the bastion-aws
Match Host="0.0.*" !Exec "nc -z -w1 -q0 %h %p"
    ProxyJump bastion-internal

Host elastic-server
    User ...
    HostName ...
    ProxyJump bastion-aws

image image

Environment information:

PhpStorm 2023.1.4
Build #PS-231.9225.18, built on July 13, 2023
Runtime version: 17.0.7+10-b829.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-76-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 5120M
Cores: 12
Registry:
    editor.focus.mode.color.light=5b595c
    ide.editor.tab.selection.animation=true
    debugger.watches.in.variables=false
    debugger.new.tool.window.layout=true
    editor.caret.width=1
    run.processes.with.pty=true
    vcs.new.widget=true
    ide.new.editor.tabs.vertical.borders=true
    ide.experimental.ui=true
    ide.balloon.shadow.size=0
    editor.focus.mode.color.dark=5b595c

Non-Bundled Plugins:
    net.sjrx.intellij.plugins.systemdunitfiles (223.230322.126)
    de.femtopedia.diffplugin (2.1.10)
    intellij-awk (0.4.1)
    org.toml.lang (231.8109.91)
    com.nasller.CodeGlancePro (1.6.7)
    com.ultrahob.zerolength.plugin (0.95)
    org.elasticsearch4idea (2023.2.4-231)
    org.turbanov.run.configuration.as.action (1.5.1)
    com.intellij.properties (231.8770.3)
    String Manipulation (9.9.0)
    ir.msdehghan.plugins.ansible (0.92)
    de.achimonline.ansible_lint (1.5.3)
    indent-rainbow.indent-rainbow (2.1.0)
    ski.chrzanow.foldableprojectview (1.1.5)
    com.intellij.grazie.pro (0.3.232)
    ru.adelf.idea.dotenv (2023.1)
    de.espend.idea.php.annotation (9.4.0)
    com.kalessil.phpStorm.phpInspectionsUltimate-mp (2023.1)
    com.virtuslab.git-machete (4.0.0)
    izhangzhihao.rainbow.brackets (2023.3.1)
    pro.bashsupport (3.2.3.231)
    lv.midiana.misc.phpstorm-plugins.deep-keys (2022.08.03.001)
    fr.adrienbrault.idea.symfony2plugin (2022.1.253)
    com.chrisrm.idea.MaterialThemeUI (8.6.4)
    com.intellij.lang.jsgraphql (4.0.1)
    com.magento.idea.magento2plugin (5.1.1)
    org.sonarlint.idea (8.4.0.73538)
    com.mallowigi (90.0.0)
    zielu.gittoolbox (500.0.13+213)
    mobi.hsz.idea.gitignore (4.5.1)
    com.github.blarc.gitlab-template-lint-plugin (1.13.2)

Current Desktop: ubuntu:GNOME
AntonShuvaev commented 1 year ago

@an2riy, thanks for reporting the issue. The SSH configuration Match option is not yet supported. I will implement it in the next version.

an2riy commented 1 year ago

It is working in the new release. Thanks

AntonShuvaev commented 1 year ago

Thanks for confirmation