Hello team, The copy URN functionality for a resou...
# ui
l
Hello team, The copy URN functionality for a resource doesn’t work. It only copies
--urn
b
hey Dilip! interesting - what version of datahub are you using? also what is type of entity that you're trying to copy the urn of? and finally, would you mind sharing the urn you want to copy?
actually one more question, sorry lol but is this a problem for all entities?
l
datahub v0.8.34
Sorry, clicking on that doesn’t actually copy anything.
b
very weird. trying from head I'm not able to reproduce this, but I know we've had some more functionality added around this feature in more recent releases, so it's possible your version has a bug around this copy button. Would you be able to upgrade your datahub version to something more recent? most recent is 0.8.41
l
I can do that and try again, but for this version, do you think i can check anyh logs?
b
unfortunately I don't think anything would get logged for this, as it's a frontend-only feature. but you could actually check your console on your browser to see if anything pops up there when you click
ahh there we go - are you on google chrome?
l
vivaldi
b
gotcha. is this localhost or hosted somewhere?
l
hosted on k8s
b
cool. so the way we're copying the urn is by calling
navigator.clipboard.writeText(urn)
in javascript, and that error indicates that
navigator.clipboard
is undefined. I'm seeing this as an issue for some people, but on google chrome it says that
navigator.clipboard
will be undefined if you're not on a secure origin: https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined
l
oh yea, the hosted url is only http, not https.
b
there we go
l
it’s the same on firefox. probably, i need to host the service on k8s.
b
We actually have deployed something that hides this button in the case that navigator.clipboard