Links with stream resource are broken in CCDM
See original GitHub issueUse com.vaadin.flow.uitest.ui.StreamResourceView
test.
It sets a link (a
element) with a dynamic resource via StreamResource
:
StreamResource resource = new StreamResource("filename",
() -> new ByteArrayInputStream(
"foo".getBytes(StandardCharsets.UTF_8)));
Anchor download = new Anchor("", "Download file");
download.setHref(resource);
download.setId("link");
add(download);
Open the http://localhost:8888/view/com.vaadin.flow.uitest.ui.StreamResourceView
page.
There will be a link.
Click on it.
Result: there is an attempt to apply a routing for the URI. But there is no such route. Navigation can’t be done and there is a routing error.
Expected: the file is downloaded.
In fact the file can be downloaded : you may copy a link to the clipboard and open it in another tab. Then everything works fine.
So apparently routing is applied when it should not be applied. That worked fine without CCDM. Most likely broken because of CCDM.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
User Guide for Cisco Unified Contact Center Domain Manager
Describes the folder structure of Unified CCDM and explains how to set up and maintain agents, contacts, equipment, and other resources using Unified...
Read more >Encrypted Media Extensions - W3C
Abstract. This proposal extends HTMLMediaElement [ HTML51 ] providing APIs to control playback of encrypted content.
Read more >Configure | Citrix Workspace app for Linux
When using Citrix Workspace app for Linux, the following configuration steps allow users to access their hosted applications and desktops.
Read more >What is a CDN? | How do CDNs work? - Cloudflare
By having a connection to these high speed and highly interconnected ... nature of a CDN means reduce distance between users and website...
Read more >No, sharing your Spotify year-end artist stats is not a good idea
First, before I sound immediately anti-Spotify or anti-streaming, ... Spotify for Artists program, with a link to “2019 Wrapped for Artists.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why is this mentioned as limitation in the V23 release? Isn’t that fixed since a long time?
As far as I understood, the fix of linking to
StreamResource
and the error view improvement are not blocking the stable.