Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot GET _xpack/license/start_trial #31325

Closed
DaveCTurner opened this issue Jun 14, 2018 · 7 comments
Closed

Cannot GET _xpack/license/start_trial #31325

DaveCTurner opened this issue Jun 14, 2018 · 7 comments
Assignees
Labels
>bug :Security/License License functionality for commercial features v6.3.0

Comments

@DaveCTurner
Copy link
Contributor

According to the docs for the Start Trial API I should be able to GET _xpack/license/start_trial. However, this yields 405 Method Not Allowed:

$ curl -X GET "localhost:9200/_xpack/license/start_trial" -vv
Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 9200 (#0)
> GET /_xpack/license/start_trial HTTP/1.1
> Host: localhost:9200
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 405 Method Not Allowed
< Allow: POST
< content-type: application/json; charset=UTF-8
< content-length: 118
<
* Connection #0 to host localhost left intact
{"error":"Incorrect HTTP method for uri [/_xpack/license/start_trial] and method [GET], allowed: [POST]","status":405}
$ bin/elasticsearch --version
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Version: 6.3.0, Build: default/tar/424e937/2018-06-11T23:38:03.357887Z, JVM: 10
$ java -version
java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)
$ uname -a
Darwin Davids-MacBook-Pro-3.local 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64
$ curl http://localhost:9200/_cat/plugins
$
@DaveCTurner DaveCTurner added v6.3.0 :Security/License License functionality for commercial features labels Jun 14, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@jasontedor
Copy link
Member

This is a minor doc bug. The endpoint is /_xpack/license/trial_status.

@debadair
Copy link
Contributor

debadair commented Jun 15, 2018

@Tim-Brooks
Copy link
Contributor

start_trial must be POST.

@Tim-Brooks
Copy link
Contributor

Tim-Brooks commented Jun 15, 2018

I'll submit a PR. This looks like it is only on 6.x and 6.3.

@Tim-Brooks
Copy link
Contributor

Actually it is on master too. I will fix all three.

Tim-Brooks added a commit to Tim-Brooks/elasticsearch that referenced this issue Jun 15, 2018
This is related to elastic#31325. There is currently information about the
get-trial-status api on the start-trial api documentation page. It also
has the incorrect route for that api. This commit removes that
information as the start-trial page properly links to a page providing
documenation about get-trial-status.
Tim-Brooks added a commit that referenced this issue Jun 15, 2018
This is related to #31325. There is currently information about the
get-trial-status api on the start-trial api documentation page. It also
has the incorrect route for that api. This commit removes that
information as the start-trial page properly links to a page providing
documenation about get-trial-status.
Tim-Brooks added a commit that referenced this issue Jun 15, 2018
This is related to #31325. There is currently information about the
get-trial-status api on the start-trial api documentation page. It also
has the incorrect route for that api. This commit removes that
information as the start-trial page properly links to a page providing
documenation about get-trial-status.
Tim-Brooks added a commit that referenced this issue Jun 15, 2018
This is related to #31325. There is currently information about the
get-trial-status api on the start-trial api documentation page. It also
has the incorrect route for that api. This commit removes that
information as the start-trial page properly links to a page providing
documenation about get-trial-status.
@Tim-Brooks
Copy link
Contributor

This has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Security/License License functionality for commercial features v6.3.0
Projects
None yet
Development

No branches or pull requests

5 participants