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

[Fleet] Error when uploading a package that does not exist in the registry #83312

Closed
neptunian opened this issue Nov 12, 2020 · 2 comments · Fixed by #83994
Closed

[Fleet] Error when uploading a package that does not exist in the registry #83312

neptunian opened this issue Nov 12, 2020 · 2 comments · Fixed by #83994
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0

Comments

@neptunian
Copy link
Contributor

neptunian commented Nov 12, 2020

As part of #77986, the user should be able to upload a package that does not exist in the registry, instead an error is returned. An error is also returned if an uploaded package exists in the registry but the version does not.

To reproduce:

  1. Create a zip of a package in the x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages directory called custom_0.1.4.zip. I did this by unzipping the the existing apache package in the directory, making some changes, and creating a new one.
  2. Try to install by upload curl -X POST -u elastic:changeme http://localhost:5603/ssg/api/fleet/epm/packages --data-binary @$KIBANA_HOME/x-pack/test/ingest_manager_api_integration/apis/fixtures/direct_upload_packages/custom_0.1.4.zip -H 'kbn-xsrf: xyz' -H 'Content-Type: application/zip'
    Response:
    {"statusCode":502,"error":"Bad Gateway","message":"'404 Not Found' error response from package registry at https://epr-snapshot.elastic.co/package/custom/0.1.4/"}. Looking in the saved object, the package is stuck in "installing"

The above error probably comes from the index patterns issue, so fixing that first may resolve this #83311

@neptunian neptunian added bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team labels Nov 12, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@ph ph added the v7.11.0 label Nov 12, 2020
@ph
Copy link
Contributor

ph commented Nov 12, 2020

I've put that in ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants