Page deleted from WP using OneDrive is still returned in Get Pages OneNote API - onenote

I am guessing the page list has been cached somehow or perhaps it will take awhile for a sync to occur between the OneNote API and the wp client app.
Before deleting the page from a OneNote notebook section - the page is returned using get pages api. Then i delete the page using the OneDrive app on windows phone. Then if I do a get pages again - the deleted page still shows. If I try to access the deleted page from my app - it will show "page not found".
So I would like to stop listing a page that does not exist any more. The response from the get pages does show a no-cache header. But I really don't see any way to control this or force a resync through the OneNote Api. I tried exiting the app and also using a different phone - but the Get pages still returned the deleted page.
If I delete a page directly from my app through the API - it gets deleted and it also no longer shows up when doing a get pages.
thanks for any suggestions.

Related

Access Google Photos through Google Drive is not working

We've been using Google Drive to fetch Google Photos metadata and to access photos through the following url
https://drive.google.com/thumbnail?authuser=0&sz="size"&id="photoId"
with the correct access token.
Metadata continues to work and drive url is giving a 404 http error (not found).
It was working ok, until some days ago (i.e. we first noticed it 2017/12/14). Probably this is related with changes going on with drive.
Is this an expected behaviour? What is the correct API to access Photos now?
You may refer with this thread. Try to clear your cookies and cache, use an incognito/private window, disable all browser extensions/add-ons/plug-ins and/or try a different browser to see if this is a browser related issue.
this is happening in production on an iOS app and we do have multiple users complaining every day.
As a test case we did the following:
1 - go to Google Photos app and did check the option to show photos & videos in Google Drive;
2 - try to clear safari history;
3 - login again.
The result is the following:
1 - we do have success requesting several pages with photo-metadata through Google Drive api v3;
2 - Through the id that we get for each photo we do try to request an image for a specific size through
https://drive.google.com/thumbnail?authuser=0&sz="size"&id="photoId"
Step 2 fails with a http 404 and did not change nothing on our side. It is happening in all devices that we tested, which means that something changed or is not working properly with drive.
Meanwhile we've been told by someone (not Google) that Google Drive is no longer the best way to access Google Photos. Because this data source is in our product, it is important to know what is the correct / best api to access Google Photos now.

Identify deleted pages in onenote

How to get the list of pages deleted using OneNote API (To synch the offline content)?
Assume we have 10000 pages in OneNote which is cached locally. When a page is deleted in OneNote how to identify the delete operation using API?
Unfortunately, the API currently does not support retrieving deleted (recycle bin) content. If you believe this is a feature we should have, please create/upvote items in our uservoice site.
https://onenote.uservoice.com/forums/245490-onenote-developer-apis
If what you are interested in are changes in user's content (deletes, adds, edits) then webhooks is what you should use. You basically subscribe to user's changes and get notified on any changes. You could cache the list of pages and on every change, identify which pages were added/deleted/edited. Note: only applies to consumer notebooks
https://msdn.microsoft.com/en-us/office/office365/howto/onenote-sync

Google Map iframe - cache issue

We have a PHP page that uses iframes as created by the Google Maps link feature. The Google Map being displayed is a KML file from our web site.
http://www.slocleanair.org/air/AirForcasting_map3.php shows the two maps.
The URL displayed is created via PHP script when the page loads so that the link points to 'todays' forecast. The six days of forecasts are uploaded weekdays and the KML filenames include the date. We add a &time=xxxx parameter to the URL to make it unique for each page load. This is a very low volume application.
Our problem is if we bungle today's forecast and need to upload a new version of the KML we cannot see the new version. It appears that the time parameter is not busting cache as we would like. It does not appear that local cache is being used as the problem appears across browsers and PCs.
Is the map being cached by Google? If so how can we force a refresh short of renaming the file?
I suppose our web server could be caching as well - if so might there be a generic way to force our server to refresh its cache? If this is even a possibility I can contact them for specific help - is this cache point even possible?
Ideas? Thanks in advance!

Embedded Images in SSRS Reports not Displaying - Permissions Issue

I have a logo at the top of all my reports that I have as an embedded image.
These reports are displayed in an ASP.Net web app via the SSRS web service interface - all pretty standard stuff but the image doesn't render - I just get a broken link.
There are a number of possible solutions for this problem and I've tried a few things including setting UseSessionCookies to false in the ConfigurationInfo table.
What I've noticed is that the image displays fine when I change the anonymous account of the consuming web app from a least privileged service account to my own user account.
I do not understand why this and can't work out what special permissions are needed by my web app's service account to be able to view embedded images in reports.
Can anyone help?
Ok, problem solved. Kind of. The problem isn't limited to embedded images and occurs because I am not using the reporting services viewer.
To summarise:
1) when your web application is making the call to the report server it is fully authorized to do so. A SessionID is generated that is ONLY available to the web application account (i.e. the Service account under which the app runs).
2) the web app outputs the RAW HTML4.0 to the screen.
3) the browser receives the HTML and tries to retrieve the images referenced in the HTML.
4) the browser is running as your user account (e.g. domain\username1)
5) the report server receives a request that looks like:
6) now the SessionID listed in the URL is not associated with domain\username1, so report server claims it does not exist.
When you set the app domain to use the domain\username1 account, then the SessionID happens to be associated with your the account so suddently things 'work'. But the moment real users try the system they complain that the images are missing, since their domain\usernameN does not match the app pool account.
The solutions to this problem are as follows:
1) use the Report Viewer control. This will ensure that the URLs received by the Browser will point back to your web app and your web app identity will be used to retrieve them from the report server.
2) in your web app code, parse the HTML4.0 that you get back from the Render call, fetch and cache all the images, re-write the HTML4.0 links to point to the cached images stored by your web app and then send it to the browser (if this seems complicated... then use the Report Viewer control since it make the scenario work)
3) you can try to use the MHTML output format, this will produce a fully qualified report with images embedded in the since binary stream. The consequence of this is it is harder to embed it within an application page... but not insurmountable
I chose to use a variation on 2) because I don't want to use the report viewer. The logo I'm trying to display is already hosted in the calling web app so I just replace the src attribute of the img tag in the response returned from the SSRS report execution service with the url to this location.
I really don't want to use the report viewer as suggested as the best solution to this issue. Why SSRS has to use session information to return something as simple as a logo that is displayed on all reports is beyond me.... It has taken ages to get to the bottom of this and the solution isn't especially pretty....
Is this an external image? Take a look at this MSDN article that explains the permissions needed for retrieving an image:
When the report is previewed in Report Designer, preview uses the
credentials of the user to display the image. When the report is run
on the report server, the report server uses the unattended execution
account to retrieve the image. If the unattended execution account is
not specified, the image is retrieved using no credentials (anonymous
user account). If either of these accounts have insufficient rights to
access the image, the image will not be displayed in the report.
I would check the permissions on the image in the Report Manager.

deploy google analytics to single html page not in root directory

I have created an html page specifically for facebook page and I need google analytics tracking for that page.
The page I have created is does not reside on root directory, instead the root directory is currently empty and I have added another folder for the html page. Now I have added the google anaytics code to the html file, but google anaytics reports
tracking not installed
How do I overcome this problem
You can ignore that message just go to the page and refresh a few times. Once data has been sent you will be fine.
So by looking at some of the answers in Google Analytics forum it looks like there a couple things that could be the problems.
Incorrect script, you can correct this by clicking "Edit" and then "Check status" to get proper UA and script
Time delay, apparently sometimes it takes up to 24 hours to see results of tracking
Change default home page under "Profile settings" and ensure that your homepage has a trailing "/"
http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=5bd936ef9dcb807b&hl=en
http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=60e0b7aa62ca25aa&hl=en
http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=0bbbafc53f9bc417&hl=en