Does anyone know why I am getting this APEX interactive report/X-Content-Type-Options:nosniff issue or how I can resolve it? - apex

Hi I have a sandbox environment that we are using to test how our apps will act in APEX 20.1 (All Apps are from version 19.1) but we seem to have a few issues with some areas and getting a identical or similar error as follows
X-Content-Type-Options:nosniff X-Xss-Protection:1; mode=block X-ORACLE-IGNORE: IGNORE X-ORACLE-IGNORE: IGNORE X-ORACLE-IGNORE: IGNORE Content-type: text/html; charset=UTF-8 Content-length: 21983
I have tried searching the knowledge base for further information but I must not be doing a search on the right subject as not a lot is related to what I am experiencing so wanted to reach out to an expert for further clarification.
This is also affecting all interactive reports so i am assuming this might be an incorrect setting at the either admin or instance/app server level can anyone confirm if there is something that might be causing this and how to resolve the issue? Many thanks.
I have also included a screenshot of the error on one of the interactive reports

This is a regression in the APEX 20.1 bundle patch, and is specific to the use of mod_plsql. This fix is now part of the APEX 20.1 PSE (Patch Set Exception) bundle.
If you go to My Oracle Support, download patch 30990551, and apply it - it should resolve this issue. We are in the process of updating the APEX 20.1 Known Issues to include this specific fix.
Please note - this bug will still be present in APEX 20.2. And thus, before you move to APEX 20.2 or higher, you will need to exclusively use Oracle REST Data Services (ORDS) and not Apache/mod_plsql. For APEX 20.2 and higher, ORDS is the only supported Web listener for APEX.
Joel

Related

Azure ElasticPool "BadRequest" during creation deployment when using ARM template

I have a task where I need to use ARM template to "setup SQL server with elastic pool and 2 databases (imported from bacpac files) use Microsoft Adventureworks samples."
Most of the template I made using "101-sql-elastic-pool-create" template that is available here: https://github.com/Azure/azure-quickstart-templates/tree/master/101-sql-elastic-pool-create
I used it for the elastic pool setup and used a sample from this documentation (https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-deploy-sql-extensions-bacpac) to have the .bacpac imported to the database
But when I try to deploy this template (the template is available to see here: https://github.com/KarlisAG/SQL_ARM/blob/main/azuredeploy.json ) it throws me an error
("Resource Microsoft.Sql/servers/elasticPools 'task4sql/elasticp' failed with message '{ "code": "BadRequest", "message": "An error occurred while processing this request.", "target": null, "details": [], "innererror": [] }' ")
So, the biggest problem is (besides me being an absolute newbie) not knowing what I need to fix, because there is no additional information granted, besides the "BadRequest". For deployment I used two different methods: 1) the automatically generated one from VS when created Azure resource groups, 2) One shown in this documentation, with few of my own changes, so it could work for me ( https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-deploy-sql-extensions-bacpac#deploy-the-template ), from where I also got the code part for importing .bacpac to my newly created database. [Both of the are available at the same repository, named "Deploy-AzureResourceGroups.ps1" and "DeployScript.ps1" respectively].
Both of the methods return the same error.
I even manually created these things in Azure portal to see what their template looks like and maybe copy some things that are not present in my template, but from what I saw I have exactly what they automatically generate.
And when I checked the deployment status in Azure portal I can also see that during the elastic pool creation it fails: screenshot from that section available here
So does anyone know how should I have created this type of template, or did I recreate it poorly, or am I missing some small mistake that keeps blocking me?
So after multiple tries it seems that I finally figured out what I was doing wrong. I am still not sure which of the changes made a difference, besides the last one, so I will write what I changed, so other people who could be facing similar issue know what they could do fix the issue.
At first, after #stringfellow noted, I thought that Free Trial is restricting me from doing anything, but after I lowered my DTU multiple times, to the point where it was at 5 (starting from 100), the same issue persisted, so probably it was not the issue (later on I had to change it at minimum to 50). I also changed the Elastic Pool edition from Standard to Basic. But doing these changes still didn't fix the issue.
At last, after answering #NachoMartínez-Aedo comment about the api version, it got me thinking. Because in the code that I posted I used "2020-08-01-preview" api version, but in reality I used "2014-04-01-preview", because when I changed the api version of all my parts to the 2020 one, then powershell told me that (No registered resource provider found for location 'northeurope' and API version '2020-08-01-preview' for type 'servers/databases/extensions'. The supported api-versions are '2014-01-01, 2014-04-01, 2014-04-01-preview'.). And after reading through that again and remembering that when I was looking at some documentation and Azure portals automatically generated templates I knew that I always say them using the 2020 api, not the 2014, which left me confused as to why I couldn't also use the newest version. And reading that error again I saw, that it specifically told that 2020 api version was not supported for the type "servers/databases/extensions", not that all of the parts must be in 2014 version (which is what I thought when I saw that error), so I tried and changed all the 2014 back to 2020 and left the extension api back at 2014 (previously I thought that all api versions should be the same, not sure why, maybe because most of the examples and documentation had everything have the same api version) and the everything worked, even the import part, about which I was worried.
So in the future I am not too sure if there is a better/newer way to import .bacpac file to newly created database with ARM, or just have to leave it as is and in the future use this same approach. Does anyone know?
I got the import extension from here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-deploy-sql-extensions-bacpac
, where they use examples with 2014 api for the extension, so because of that I tried to use it for all my parts, but only during this answer writing did I realize and look through it again, that they used the 2014 api only for the extension part and not other parts, like server, database, etc.
TL;DR
So basically I needed to use the '2020-08-01-preview' api for everything besides from the extension part, where the newest api version is only '2014-04-01-preview'
I was able to deploy most of your template and use similar parameters in my own subscription. I saw in your screen capture that you are using a Free Trial subscription. I am curious if that has anything to do with the 'BadRequest' due to any sort of DTU limitation.
Here is my deployment, which failed as expected when it tried to import the databases.

Causes for "report source could not be retrieved from the state object"

I have a legacy system that has a CMS server set up to generate Crystal Reports all from the same database. Users will input the required parameters in a front end application, which then passes it to the CMS to generate the report in a CrystalReportViewer.jsp page. The report titles as shown in both the CMC console and InfoView is as follows:
PersonnelDetailsA
PersonnelDetailsB
PersonnelDetailsC
After a recent update to the application (which did not touch on the Crystal Report functionality at all), users reported that they were unable to generate a report for PersonnelDetailsB (A and C were both working fine). The stated error message that they got was
Report source could not be retrieved from the state object
After some googling and trial and error on our development setup, I figured out that the error was caused by the CMS not being able to find the report requested, so my immediate, and actually only, hypothesis was that the report name my application passed to the CMS was wrong (the only way I've managed to reproduce the error). So I went and verified it in the production InfoView.
Turns out I was dead wrong. All the report names are correct.
As far as I know, nothing has changed with the set up of the CMS in production. The reports worked fine prior to our application update and I've verified that we did not make any changes in our application that would affect the Crystal Report functionality. In fact all the reports work perfectly in our development setup. Yet something clearly went wrong when we deployed to production. All 3 reports are in the same folder, and yet one of them cannot be found even when the correct report name is provided.
What am I missing here? What other way would cause the CMS to throw that specific error beside not being able to find the report in question?

ReactJS 5.3.0 not loading from unpkg.com

We have been using the following library for months:
https://unpkg.com/react#15.3.0/dist/react.min.js
Yes - I know we can just reference 15.3 and get the URL rewrite to the latest, but they released a breaking change. That's another issue for another day. Don't get distracted.
Yesterday this simply stopped working. You'll notice that if you load the URL mentioned, that the file is TRUNCATED. Simply cuts off. This made everything we use react with break. Interestingly, if you go to the following URL (without the .js extension) - things work.
https://unpkg.com/react#15.3.0/dist/react.min
My question is - what the heck happened? Why did the URL we've been using for 8 months suddenly stop working, and who can we get to fix it. In the interim, we had a copy locally that we've started referencing (which we probably should have been doing to begin with, since we don't want the automatic upgrade). When things like this happen, who do you inform?
I'm not sure you'll find the answer as to why this file is no longer working here but based off of the website you could reached out to the creator on twitter: https://twitter.com/mjackson
On the website it says:
SUPPORT
unpkg is a free, best-effort service and cannot provide any uptime or
support guarantees.
i.e. you should probably only use this link if you are messing around with a small project and shouldn't be used for any website where you actually care about the uptime of the site.

HTTP Error 404.19 - Not Found in IIS 8.5

I have a website, which runs perfectly in IIS 7.5. but the same site with same configuration is not working properly in IIS 8.5. i am passing an system string variable in URL and it shows me
HTTP Error 404.19 - Not Found error.
So i am not able to catch the exact issue. All things are same for both IIS except IIS version only. So i need your thoughts for the problem. So that I can also look into this. Unfortunately I am new in .net, so need basic answer(s). Thanks.
If I pass "&system=value1"in URL for IIS8.5 then it stops working, even this also didn't generate any log for this. So please help me for this.
I just Came to know that if i use "sys" word in Query String then its giving error. How to avoid this issue now?
This can be found in IIS under Request Filtering. Usually, you will see this under the Deny String section of a rule, possibly one meant to thwart SQL Injection attacks.

SugarCRM CE smarty error after upgrade

I recently upgraded our SugarCRM CE form 5.x to 6.2.6. I had some uphill experience but I overcome everything except one issue.
The following error appears in the "Email Address" area on Contact, Opportunity and other similar pages.
Warning: Smarty error: unable to read resource:
"include/SugarFields/Fields/Base/detailViewFunction.tpl" in
/home/campusre/public_html/sugar/include/Smarty/Smarty.class.php on
line 1095
I did a search on SugarCRM forum and I found only one similar thread that was old and not answered. I also contacted our hosting company to check if this problem is related with the file or folder permission but they confirmed that it is not the problem in this case.
I am a developer but didn't do any SugarCRM and Smarty development before. I am investigating the code by my self but without success so far.
Any suggestion will be highly appreciated.
Thanks in advance.
unable to read resource: include/SugarFields/Fields/Base/detailViewFunction.tpl
This usually means that incorrect permissions are set on this file or that the file doesn't exist. However, in this case it looks like a casing issue. The file is actual camel case and named DetailViewFunction.tpl. It looks like you are running into a case-sensitive issue. My initial guess is that it is due to an old module or piece of code from 5.x.