IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

App Control: Unable to Locally Approve Files from Events or File Catalog

App Control: Unable to Locally Approve Files from Events or File Catalog

Environment

  • App Control Server (formerly CB Protection): All Supported Versions
  • App Control Console (formerly CB Protection): All Supported Versions

Symptoms

  • Unable to approve files locally
  • PHP Error Logs:
    API Error from page 200: PUT ServerName/api/bit9platform/v1/fileCatalog/*******?changeLocalStateForComputerId=???&newApprovalState=2 with params []...
    Returned http code 404

Cause

PUT and DELETE API request not accepted by the server

Resolution

  1. Log in to App Control Server
  2. Open C:\Program Files (x86)\Bit9\Parity Console\API\
  3. Backup the file 'web.config'
  4. Stop the App Control Server and Reporter Services
  5. Modify the web.config file: replace the whole content in the tag <system.webServer> New Information HERE <system.webServer /> tags
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    
    //This will enable all Web API verbose
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    
  6. Restart IIS server 
  7. Restart the App Control Server and Reporter Service

Additional Notes

Entries may need to be added to Web.config file according to this external aricle:DELETE/PUT verbs result in 404 Not Found in WebAPI, only when runni...


Related Content


Labels (1)
Was this article helpful? Yes No
100% helpful (1/1)
Article Information
Author:
Creation Date:
‎01-07-2021
Views:
918
Contributors