Skip to content

cloud ID containing name other than 'name' fails #690

Closed
@vascoosx

Description

@vascoosx

As described in the title. Workaround is to change the actual name to 'name'. However I am not sure if this is safe.

This line
https://github.com/elastic/elasticsearch-ruby/blob/master/elasticsearch-transport/lib/elasticsearch/transport/client.rb#L164

should be changed to

 cloud_url, elasticsearch_instance = Base64.decode64(arguments[:cloud_id].gsub(/^[^:]+:/,'')).split('$')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions