Access to files via Google search vs direct link - search

I was looking for some papers online and found out something weird (at least to me). When I do a search in Google I can find the paper and can access it by clicking the link that came up in my search:
However. when I copy the link and paste it, I no longer have access to the file. It is taking me to the user credentials page https://jpm.pm-research.com/user/login:
Can someone explain this behavior? Am I able to access file by modifying the URL of that website?

Related

Links i harmon.ie offers a download, not the actual SharePoint document

When I attach a link in an email using harmon.ie, I get an url that includes the file name. However when the recipient clicks it, it starts to download a copy instead of opening the actual SharePoint document.
The link is typically on this format:
[company].sharepoint.com/sites/[subsite]/[library]/[filename.docx]
The same link retrieved directly from SharePoint would look something like this:
[company].sharepoint.com/:w:/s/sites/[subsite]/EZ31C3wRKuVPnOOB7vNGMsMBiI9eYAjGTuiaEODu_c3wpw
That link will typically open the document in SharePoint as expected.
It did not use to be like this. The links from harmon.ie used to open documents instead of downloading copies. I am afraid I cannot say when we discovered this, but I believe it was a couple of months ago. We are using the free plan, and are not qualified for support from harmon.ie. We were pointed in the direction of this forum, and I would be most grateful if someone could help us.
Thanks
Eigil
Harmon.ie creates plain valid links to Sharepoint document and they are opened by default browser (like any link you will add inside an email)
The behavior is only controlled by the browser not by harmon.ie (you can check it out by adding the url in the browser)
The only solution to control the behavior is to use the feature to generate OWA link so that it opens in Office online.
Indeed, we have feature allowing to create links that will open in OWA (hence in the browser)
Please read carefully register key: GenerateOWALinks as detailed at https://harmon.ie/provision-harmonie-outlook-all-users
Note also that if the recipient of the email has harmon.ie installed, he can right click on the link, select Open in Harmon.ie. The document will appear in harmon.ie sidebar (at the Sharepoint location), double clicking on it with open the document in MS Word.
Thanks,
----- Jean

Google Doc - Public shareable link

I have a bunch of documents for which I want to determine the public links. Reading https://support.google.com/drive/answer/2494822?hl=en says I can get a "Anyone with a shareable link".
However no matter what I do I cannot find that option. The only links I can get is for ".... in the Organisation" All I need to do is get the link so I can embed it in an iFrame on another site.
Can anyone give me any pointers. This is not obvious as I think the fact it is in a Google Apps environment is preventing me getting what I need.
If you do not see the option, likely your administrator has restricted sharing with outside sources. You will need to speak with your domain administrator to either change these settings, or to figure out an alternative method of sharing the document.
Your administrator can find this in Apps > Google Apps > Drive > Sharing settings in the admin console.
https://support.google.com/a/answer/60781?hl=en

Preview or Embed on a web page an Excel document stored in Azure Blob

I was wondering if it is possible to open an Excel file (or any Office file) stored on an Azure Blob account within a browser or, better yet, embedded on a web page. Kind of like a preview function instead of always prompting the user to download the file. I know this could be easily done by storing the file in Sharepoint or OneDrive and using it's embed functionality but I'm trying to steer clear of those since we already implement the blob storage.
I've been searching but most results only lead me to Sharepoint/OneDrive.
Any help would be appreciated. :)
Edit (2014-07-14)
As per RGregg's suggestion below, I tried looking into creating a custom WOPI Host and I do think it would perfectly fit what I need. But I think I'm missing something. I cannot get the preview running. I am always getting a "Server not found" error. I tried replacing the old discovery file directed at owa1.wingtip.com with officeapps.live.com/hosting/discovery and it now goes as far as the loading image of Word Online but it gets stuck there. Couldn't really find other materials that expounds on how to make it work and it doesn't show any error whatsoever.
I also tried to create my own (in an attempt to simplify everything with just the mere basics) by implementing the GetFile and CheckFileInfo methods required. It sucessfully retrieves the file and the info but I still can't integrate it with the Web Apps. I think I'm missing a big chunk of something but I can't really figure it out. :(
I think it'd be easier to convert your backend over to Office 365 or OneDrive than to make your blob storage solution work with the Office apps, but I think what you would need to do is implement a WOPI host, like in this article: http://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6. That would at least get you to a point where Excel Web App could load files from your blob storage.
I've just recently found out about Google Doc Preview. Basically, you'll just need an online URL of your document and appended it to:
https://docs.google.com/viewer?url=
and put that in an iframe. For wholeness:
<iframe src="http://docs.google.com/viewer?url=http://<blobServer>/<filename>&embedded=true" width="600" height="780" style="border: none;"></iframe>
It already provides some sort of a "Print Preview" on an IFrame so you have to keep in mind of pagination when creating the document for a prettier view. It also doesn't require you to have any google account to access it.
I still have some issues with it though:
Security. No required account = less security.
Doesn't render charts well. I had a pie chart and it appears as one whole solid circle.
Doesn't render filters at all thus...
Doesn't provide interactivity unlike OneDrive's embed.
But, this still answers the question so I'm posting it here for anyone looking for a solution. :)
Any answers are still welcome. :)

Cannot paste images from authenticated site to Microsoft Word

I've seen this issue posted here before, but the solution - although it helped others - did not work for me.
When you copy an image from your browser into your clipboard, and then paste it into Word, Word tries to make a web request to get the content. If the image was from a site that uses a form-based login to authenticate users, Word obviously fails to login. Your content cannot be pasted. Other software, like Paint for example, has no issue with this and will simply paste your copied content without trying to make another web request.
It has been suggested that changing the "Check for newer versions of stored pages" setting in Internet Settings to "Automatically" will the solve the problem. This may well work for some, but not for me. I've tried every option in this setting and none work.
I've used packet capture software to ensure that Word really is making a web request when I paste the content. The web page is indeed redirecting Word to the authentication page, at which point, Word does nothing.
I am using Chrome, but have tried Internet Explorer. My Internet Explorer version is 10. I am using Windows 8. I am using Word 2010.
There are many suggestions on the web about image formatting and document layouts etc. in Word, but this is clearly not my problem. The packet capture reveals that Word cannot authenticate to get the image.
Is there some way to prevent Word from doing an extra HTTP GET to gather the image from the website? Since other software has no problem pasting the content without doing an additional web request, it seems the content really is in my clipboard.
Instead of trying to fight Word on this have you tried just saving the image itself and then copying your local copy to Word rather than copying it directly from the site? You would take ownership and Word should treat it like a local file and see no need do a HTTP GET.

google index - will google index my logs?

I have some txt log files where i print out some important activities for my site.
These files ARE NOT referenced from any link within my site, so it's only me i know the url
(they contain current date in the filname so i have one for each day).
Question: will google index these kind of files?
I think google indexes only the pages whom urls are on the site.
Can you confirm my assumption? I just do not want others to find the link from google etc:)
In theory they shouldn't. If they aren't linked from anywhere they shouldn't be able to find them. However I'm not sure if stuff can make its way into the index by virtue of having the google toolbar installed. Definitely I've had some unexpected stuff turn up in search engines. The only safe way would be to password protect the folder.
Google can not index pages that it doesn't know they exist, so it won't index these, unless someone posts the url's to google, or place them on some website.
If you want to be sure, just disallow indexing for the files (in /robots.txt).
Best practice is to use the robots.txt to prevent the google crawler from indexing files you don't want to show up.
This description from Google Webmaster Tools is very helpful and leads you through the process of creating such a file:
https://support.google.com/webmasters/answer/6062608
edit: As it was pointed out in the comments there is no guarantee that the robots.txt is used so password-protecting the folders is also a good idea.

Resources