[QA] permanent link from the shares pages shows 'undefined' #12001
Labels
Priority:p2-high
Escalation, on top of current planning, release blocker
Type:Bug
Something isn't working
Describe the bug
The web UI has multiple ways to get a permanent link for a shared file or folder.
Some of them return a useful URL, others return the string
undefined
Steps to reproduce
This is reproducable with OCM shares, as well as with local shares.
To demonstrate both, we setup two machines with e.g.
env OCIS_DNSNAME=cat-7rc3-DATE OCIS_VERSION=v7.0.0-rc.3 ./deploy_ocis_bare_metal.sh
env OCIS_DNSNAME=dog-7rc3-DATE OCIS_VERSION=v7.0.0-rc.3 ./deploy_ocis_bare_metal.sh
mutually register the machines in their ocmproviders.json; service ocis restart
Alice at dog invites bob at cat. bob accepts.
Alice shares a folder with local user bob and with the remote user bob.
Both Bobs see the folder in shares -> Shared with me. The folder's 3-dots menu has a 'Copy permanent link' entry. (There is also a chain icon next to the 3-dots menu, that has the same function. When clicked, the text
undefined
is stored in the clipboard. BAD.Alice sees the folder in shares -> Shared with others. The folder's 3-dots menu has a 'Copy permanent link' entry. (There is also a chain icon next to the 3-dots menu with the same function). When clicked, the text
undefined
is stored in the clipboard. BAD.When a user actually enters the folder, another 3-dots menu appears in the folder's breadcrumbs. When clicking there, a useful URL is stored in the clipboard. OK.
Expected behavior
All 'Copy permanent link' elements copy a permanent link into the clipboard.
Actual behavior
some don't.
Additional context
Javascript Console shows nothing when we get this
undefined
.The text was updated successfully, but these errors were encountered: