I'm having a problem, possibly related to the IsProtected issue, and I'm hoping you can help.
I've just installed the package via nuget and I'm trying to use it with ExaminePDF to add allowed groups into the index. The problem is, whenever my code hits IsProtected it just sort of kills the examine index without a real error.
As soon as it's assigned protectedTest once it dies, and my index contains no results. If I comment out that line it works and _Test is added to the index.
I get the same result if I use IsProtected in an if statement. Using breakpoints I can see it gets to the If then stops - if won't go into the if or the else clause.
All help welcome. Thanks in advance
*EDIT:
I did some more testing and I'm getting A first chance exception of type 'System.ArgumentNullException' occurred in System.Web.dll
MediaProtect is using UmbracoContext which is using HttpContext to get to the services. It seems that this is not available in the Examine indexing process.
Thanks for your reply. I've got around the problem as you suggested - I've injected the ID and Path so I can filter at runtime*. However, ExaminePDF doesn't seem to be indexing the protected files. Is that something your aware of, or am I doing something wrong? I've set the indexer to supportProtected="true" not sure what else I can do?
More testing and I've found ExaminePDF and Media Protect ARE playing nicely together, but the ExaminePDF index doesn't store/search the file name (which is what I was testing).
Examine PDF with Media Protect problem
Hi Richard,
I'm having a problem, possibly related to the IsProtected issue, and I'm hoping you can help.
I've just installed the package via nuget and I'm trying to use it with ExaminePDF to add allowed groups into the index. The problem is, whenever my code hits IsProtected it just sort of kills the examine index without a real error.
My Code:
As soon as it's assigned protectedTest once it dies, and my index contains no results. If I comment out that line it works and _Test is added to the index.
I get the same result if I use IsProtected in an if statement. Using breakpoints I can see it gets to the If then stops - if won't go into the if or the else clause.
All help welcome. Thanks in advance
*EDIT: I did some more testing and I'm getting
A first chance exception of type 'System.ArgumentNullException' occurred in System.Web.dll
Hi,
MediaProtect is using UmbracoContext which is using HttpContext to get to the services. It seems that this is not available in the Examine indexing process.
Best to request isprotected etc at runtime.
Best,
Richard
Hi Richard,
Thanks for your reply. I've got around the problem as you suggested - I've injected the ID and Path so I can filter at runtime*. However, ExaminePDF doesn't seem to be indexing the protected files. Is that something your aware of, or am I doing something wrong? I've set the indexer to supportProtected="true" not sure what else I can do?
Thanks
*For anyone looking for an answer:
Hi Richard,
More testing and I've found ExaminePDF and Media Protect ARE playing nicely together, but the ExaminePDF index doesn't store/search the file name (which is what I was testing).
Thanks for helping me resolve the original issue.
Great to hear it's solved!
is working on a reply...