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

[web] Wait until the logs path is resolved #746

Merged
merged 3 commits into from Sep 11, 2023
Merged

[web] Wait until the logs path is resolved #746

merged 3 commits into from Sep 11, 2023

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Sep 11, 2023

Problem

The download logs action on the web UI stop working. Instead of prompt the download, it crashes because of a
missing "path" option for fsread channel.

Solution

Wait until the path promise is resolved before continue at

const path = proxy.CollectLogs("root");
before continue.

It closes #697.

Testing

  • Tested manually

To avoid a a "protocol-error" raised by the CockpitChannel because of a
"missing path option for fread channel".

See #697
@coveralls
Copy link

coveralls commented Sep 11, 2023

Coverage Status

coverage: 72.879%. remained the same when pulling cfe9581 on fix-github-697 into 0077885 on master.

Co-authored-by: Imobach González Sosa <igonzalezsosa@suse.com>
@dgdavid dgdavid marked this pull request as ready for review September 11, 2023 12:04
@dgdavid dgdavid merged commit b96c921 into master Sep 11, 2023
9 checks passed
@dgdavid dgdavid deleted the fix-github-697 branch September 11, 2023 12:50
@imobachgs imobachgs mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Downloading the logs does not work
3 participants