Try our conversational search powered by Generative AI!

Cant open links to documents without being logged in

Vote:
 

Hi

This is a similar issue to this: http://world.episerver.com/Forum/Developer-forum/ImageVault/Thread-Container/2014/4/View-image-without-be-logged-in/

But in my case it's when the editor selects a document (.pdf) in the XHTML property through the imagevault toolbar button.

The link to the document gets generated with the internal */media/* url. Is this expected or should the editors add the documents in another way?

As a quick work around I have changed so that the path="imagevault/media/*/* goes through the PublishedMediaProxyHandler, and this solves the problem of course. What complications could come from doing this?

 

Thanks in advance!

/Fred

#85075
Apr 14, 2014 12:43
Vote:
 

You should have the internal urls (/media/) when working with the media. It only get translated to public urls when saving the page.

We had one bug (#497) regarding freetext field in blocks that were not updated so an upgrade to 4.4.12 might solve it. (see changelog http://imagevault.se/en/documentation/api-documentation/?page=installation/changelog.html )

Changing the handler is not recommended since published links and media links are not using the same keys for the media. Just because it works in this version isn't sure it will in future upgrades.

If none of the suggestions above will help you, I suggest you contact EPiServer support and register a case there.

/Dan

#85092
Apr 14, 2014 22:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.