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

Fix log download & plain view #6473

Merged
merged 3 commits into from
Mar 19, 2024
Merged

Conversation

Matthbo
Copy link
Sponsor Member

@Matthbo Matthbo commented Mar 19, 2024

File Viewer now accepts accept url parameter which will overwrite Accept header to serve the right content-type
Also a fix for how files are displayed within the console (Fixes #6448)

@Matthbo Matthbo self-assigned this Mar 19, 2024
@Matthbo Matthbo linked an issue Mar 19, 2024 that may be closed by this pull request
Response response = dispatcher.dispatchRequest(HttpMethod.GET, requestUrl, null, IbisRole.IbisTester, Map.of("Accept", MediaType.TEXT_PLAIN));
InputStream result = (InputStream) response.getEntity();

String resultString = StreamUtil.streamToString(result);
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misschien ook goed om een assertNotNull toe te voegen 😄

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misschien wel slim ja, helemaal niet over nagedacht dat het null zou kunnen zijn aangezien ik natuurlijk de bus mock

Copy link

sonarcloud bot commented Mar 19, 2024

@nielsm5 nielsm5 merged commit c59c5cf into master Mar 19, 2024
16 checks passed
@nielsm5 nielsm5 deleted the issue/6447-log-download-broken branch March 19, 2024 15:43
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.

Browsing log file doesn't show plain text Log download broken
3 participants