question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Links with stream resource are broken in CCDM

See original GitHub issue

Use 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:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
knoobiecommented, Mar 2, 2022

Why is this mentioned as limitation in the V23 release? Isn’t that fixed since a long time?

1reaction
platoshacommented, Feb 24, 2020

As far as I understood, the fix of linking to StreamResource and the error view improvement are not blocking the stable.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found