Visual Builder

Get Involved. Join the Conversation.

Topic

    eswar prasad
    PUT request not working from VBCS Code after VBCS version...
    Topic posted October 23, 2019 by eswar prasadRed Ribbon: 250+ Points, tagged REST, Services 
    36 Views, 12 Comments
    Title:
    PUT request not working from VBCS Code after VBCS version upgrade
    Summary:
    PUT request not working from VBCS Code after VBCS version upgrade
    Content:

    Hi,

    We are facing issue with REST API PUT request after vbcs version upgrade which was wokring fine with earlier version.

    Below is the API URL and request payload.

    https://ejjq-dev1.fa.us2.oraclecloud.com:443/km/api/latest/content/C079D37668044482B11C449CE1BD52C1

     

    {
        "recordId": "C079D37668044482B11C449CE1BD52C1",
       "versionId": "704E8A654B7541459E3E5AF76AAE557E",
        "documentId": "WEBC41",
        "version": "40.0",
        "answerId": 1011047,
        "locale": {
            "recordId": "en_US"
        },
          "dateModified": "2019-10-13T18:37:45+0000",
        "contentType": {
            "recordId": "B0DD926A51684AF18F483DC9CD3BE453",
            "referenceKey": "WEBCONTENT",
            "name": "MFE-WebContent"
        },
       "createDate": "2019-04-25T08:38:14+0000",
        "lastModifiedDate": "2019-10-13T09:34:11+0000",
        "dateAdded": "2019-10-13T09:34:11+0000",
        "displayStartDate": "2019-10-13T09:35:21+0000",
        "displayEndDate": "9999-12-31T00:00:00+0000",
        "owner": {
            "recordId": 300000074607717,
            "name": "cspapiuser cspapiuser",
            "email": "jsubrama@mcafee.com",
            "externalType": "ACCOUNT"
        },
        "published": false,
        "pending": false,
        "checkedOut": false,

        "xml": "<WEBCONTENT><TITLE><![CDATA[PutReqTest]]></TITLE><TAG><![CDATA[PutReqTest]]></TAG><CONTENT><![CDATA[<span><span new=\"\"><em><strong>Test V3VBCS xcvxcvcxv Published1 6.0 Content!! test test2</strong></em></span></span>]]></CONTENT></WEBCONTENT>",
           "isForEdit": true,
            "views": [
            {
                "recordId": "BBA181DFB52148779A416184A191B2AF",
                "referenceKey": "SERVICE",
                "name": "Service"
            }
        ]

    The same request is working with postman client but not working with vbcs code currently and getting below error.

    errorCode: "OK-GEN0003"
    title: "An application error has occurred. Root Cause: User not allowed to perform operation."
    type: "APPLICATION"

     

    status: 403
    statusText: "Forbidden"

    Could you please let us know what changes need to be made in this current version so that it works.

    Attached is the image which has the console output as well.

    With Regards,

    Eswar.

    Version:
    19.3.1.3
    Image:

    Comment

     

    • Shay Shmeltzer

      What's your security settings like in VB? Are you using federated identity with Oracle SaaS?

      When you log into VB are you logging in with your FA user/pass, and then invoking the service using "Oracle Cloud Account" option in the service authentication option?

      • eswar prasad

        Hi Shay,

        We login to VBCS with our credentials and then attached are the images which show how the vbcs  Integrations , FA Services settings and REST api service settings are.

        With Regards,

        Eswar.

    • Aparna Gaonkar

      Could you show the network tab with the full URL that is being requested and the request and response headers?  A whole snapshot of request and response headers will help.  Also are you sure you are not running the application anonymously?  

    • Aparna Gaonkar

      Also make sure that the request body does pass through.. you can easily check this in Network tab whether there is a request body or not

      One more thing to confirm, check it this works in the Test tab of services

    • eswar prasad

      Hi Aparna,

      Please find the request and response headers data from network tab and this service is not working in services connection test tab which was working in earlier version.

       

      General:::

       
      Request URL: https://ejjq-dev1-apps1.builder.ocp.oraclecloud.com/ic/builder/design/CSP_LOCAL_23_10_2019/1.0/services/auth/proxy/kmApiLatestContentData/uri/https/ejjq-dev1.fa.us2.oraclecloud.com/km/api/latest/content/9B98350779C4464E9FE036793F895185
      Request Method: PUT
      Status Code: 403 Forbidden
      Remote Address: 147.154.7.90:443
      Referrer Policy: no-referrer-when-downgrade
       
      Response Headers:::
       
      Access-Control-Expose-Headers: X-appbuilder-client-id, X-invalid-appbuilder-client-id, X-appbuilder-repeat-request
      Connection: keep-alive
      Content-Encoding: gzip
      Content-Language: en,en-us
      Content-Length: 188
      Content-Type: application/json
      Date: Thu, 24 Oct 2019 09:25:59 GMT
      set-cookie: ORA_OCIS_CG_SESSION_idcs-17bae59e643a43c5808b750eb447418d_ejjq-dev1-apps1.builder.ocp.oraclecloud.com=1AkAAJoJAAAQIJoJAACACQAAEAAnRFHFWns9L4H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NDO2s_BKpr08uACW-zSnivwl9iWGEjBd2VK7xObi15XI6Oefa55fMNizLU; path=/; HttpOnly; secure; domain=ejjq-dev1-apps1.builder.ocp.oraclecloud.com
      Vary: Accept-Encoding
      Vary: Referer
      vbcs-proxy-accepted-headers: Accept-Encoding, Content-Length, accept, accept-language, localeid, localeoverride
      vbcs-proxy-blocked-headers: Cookie, Host, Origin, Referer, Sec-Fetch-Mode, Sec-Fetch-Site, TRUE-CLIENT-IP, User-Agent, X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Proto, X-POLICY-IDENTITY-SERVICE-GUID, X-RESOURCE-ACCOUNT-GUID, X-RESOURCE-IDENTITY-DOMAIN-NAME, X-RESOURCE-IDENTITY-SERVICE-GUID, X-RESOURCE-LISTENER-PATH-PREFIX, X-RESOURCE-LOGICAL-SERVICE-GUID, X-RESOURCE-SERVICE-INSTANCE-GUID, X-RESOURCE-SERVICE-INSTANCE-IDENTITY-APPNAME, X-RESOURCE-SERVICE-INSTANCE-IDENTITY-POLICYNAME, X-RESOURCE-SERVICE-PERMANENT-HOST, X-RESOURCE-SERVICE-TYPE, X-RESOURCE-SUB-ACCOUNT-NAMES, X-RESOURCE-WEBTIER-POLICY-DISABLED, X-Real-IP, X-appbuilder-client-id, content-type, idcs_authn_method, idcs_authn_strength, idcs_cloudgate_id, idcs_remote_user, idcs_remote_user_mappingattr, idcs_service_url, idcs_session_id, idcs_user_assertion, idcs_user_csr, idcs_user_display_name, idcs_user_id, idcs_user_tenant_name, is_ssl, remote_user, x-user-identity-domain-name, x-user-identity-service-guid
      vbcs-proxy-diagnostics: {"request":{"headers":{"Authorization":"*******","accept-language":"en_US","localeoverride":"true","User-Agent":"Oracle-VBCS-Proxy","Host":"ejjq-dev1.fa.us2.oraclecloud.com","Accept-Encoding":"gzip, deflate, br","localeid":"en_US","accept":"application\/json","Content-Type":"application\/json"},"method":"PUT","uri":"https:\/\/ejjq-dev1.fa.us2.oraclecloud.com\/km\/api\/latest\/content\/9B98350779C4464E9FE036793F895185"},"response":{"headers":{"X-DataStream-MidMile-RTT":"11","Server":"Oracle-HTTP-Server","X-ORACLE-DMS-ECID":"005_QIV34oL3z035Rnh8id00077J0002eq","X-Content-Type-Options":"nosniff","Connection":"close","Date":"Thu, 24 Oct 2019 09:25:59 GMT","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-DataStream-Cache-Status":"0","X-DataStream-Origin-MEX-Latency":"342","Content-Encoding":"gzip","Vary":"Accept-Encoding","Set-Cookie":"*******","Content-Length":"188","Content-Language":"en,en-us","Content-Type":"application\/json"},"status":403}}
      vbcs-proxy-status-actual: 403 Forbidden
      X-AppBuilder-Build-Number: e6b26bbe966113781a97adde83f6787d1b6e6547
      X-appbuilder-client-id: avpkviiug0v7jsciehnn59ojnh
      X-AppBuilder-Proxy-AuthenticationType: BASIC
      X-FRAME-OPTIONS: SAMEORIGIN
      X-ORACLE-DMS-ECID: 005_QIV34oL3z035Rnh8id00077J0002eq
      X-ORACLE-DMS-ECID: 7192dcad-17b8-48ef-a58d-51babdfccb8a-0004d0d2
      X-ORACLE-DMS-RID: 0
       
       
      Request Headers:::
       
      accept: application/json
      Accept-Encoding: gzip, deflate, br
      accept-language: en_US
      Connection: keep-alive
      Content-Length: 10396
      content-type: application/json
      Cookie: VBCS_DT_METRICS_93FFC95382194E6384FFB7E186D8C8D7=1; X-Oracle-BMC-LBS-Route=36d855d09bd38299dbcc7790f43fa67c368332309ba87b6b0a9b1ec0659b88eff35be80485dc72a8; JSESSIONID=YP_9CRq1R6d7puRuuglcBZ1dLGb9y03gL17IjrL5pldYTK-Ic6tL!1602437048; _WL_AUTHCOOKIE_JSESSIONID=2w8r7VfWtbrJMt3VM9QG; X-AppBuilder-SessionId=GpzPF0wzhTaXaCoiZRmhrl35e/MU9WF57Ll8qAPgyIQUplZK+mjNN+iXAody7FWE4t4CXvRWGSTNwsu9eKhRDcmBBxk5rlQPraMkUUg+2wYm+pPfN0rhsY4/622h5fKnVxotjBkWbJ2yfHW6437kmNSp/f7toXwHJ7eonSak; X-Oracle-BMC-LBS-Route=36d855d09bd38299dbcc7790f43fa67c36833230a3b8d546608dcb75bd73a650b07292361a56f8b5; X-Oracle-BMC-LBS-Route=36d855d09bd38299dbcc7790f43fa67c36833230b6de798fb644c52966cad229f9733482ec7c30e6; QSI_HistorySession=https%3A%2F%2Fejjq-dev1-apps1.builder.ocp.oraclecloud.com%2Fic%2Fbuilder%2Fdesign%2FCSP_LOCAL_23_10_2019%2F1.0%2Fpreview%2FwebApps%2Fcsp%2F~1571908729558; s_cc=true; s_sq=csp-vbcs%3D%2526pid%253Dtools%25253Aen-us%25253Atroublerepair%25253Amvt%2526pidt%253D1%2526oid%253DSave%2526oidt%253D3%2526ot%253DSUBMIT; ORA_OCIS_CG_SESSION_idcs-17bae59e643a43c5808b750eb447418d_ejjq-dev1-apps1.builder.ocp.oraclecloud.com=1AkAAJoJAAAQIJoJAACACQAAEAB4PLeZYDpCO0k6-gvSVMX0I1o0A-w3j8bcQc7lM2GKpjGrUC9BqFKrCKHfz2eNKLnX8Z-cPOQ69Sd8UM-C5ZTeEdzNEVb-29kj_e1b68OUeL-owaXgb2cGrdzvt719MQhFlrEbK5H7ggz5v4Ly7rwBndlOIpFrEcYWnGlB3vYmEx0fgB6LB2Gsq30iYSmHi3KYIN8I-IHLv48jHd1YNtJjewpI6Duk5_yvtIomlxxdMawWeKG1s_12w7LZ23JZdf2w0ZcUUYgvU8oayBlaCqf2z1oTfu5cdaL6KlKi57mRfix4zULG5PQxz8zdTXwhjy2qlzpgXnykcaaA2xq4n9G7kLM7XhzNuS715v5sX6jmMO50FrmLMj8dFF3FcuFWZkv8GrHAD-gWTyM-qN8QKTcfs6omb3lSs0cG01scnJyW70kakoXLx-2ru23-sEwrWDHdRh4A0sQmikFYxjdXQnIewz_jWNu48sD8KqIgo40_uXVt1Y1dYnNZgMtuMv_EV4SAVXNEVf2EbR1qgCe_ORTIXHAuaHZKdBBk2hgPcgwLB_h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8prm82UaGTj6qeSUiNWQSSuRvyQVXSvI359H4-m9nFNEZxtGsr3Yn_EVaWxNY-BZCpvMM0ypRh5nw2Pn9-rJQqeKTP7dYw1JVnIBF20u8cCg2s-IbU-QlHSiWXCXNJBtGiYBHr9zDr7EoZVZOuzB6elz7ebW_O9tRoAmNraSmew3mgIYMaq8Ey6A9QVCrRgQDUaoYLXiO4D7pUn2d1WDyeiSyNU4dBxAFWA9qczGiziPL9UCNc6SqO_8GFwnHxQOfp2HHBEcqx02lEp-Q-rRoToV4W2XnCHba0VGFmFCuYirtNu0Vuv_B7nsjgr01Wtg9JPsGI8CRFsJYDWSHJU4JbpKHpC8ocWXJTYNfl7f1ZTkn2H-SP4lI98cgEh3QAugbMINVyWJiresEOk8yuLTzvABWEmfZf7HUculx2PaYiKwiX1kz9NxDH1gf8DQQx1zJhn-Vncrdln1VbvoJH55dQUTvxK3VnD3a-ocYQOdOYmSgFtHAYeFSmi6lrA33jhcsXughow23xtakidAQTaaEu7Gm_2VxrxUIoW-zSnivwl9iWGEjBd2VK7xObi15XI6Oefa55fMNizLU
      Host: ejjq-dev1-apps1.builder.ocp.oraclecloud.com
      localeid: en_US
      localeoverride: true
      Origin: https://ejjq-dev1-apps1.builder.ocp.oraclecloud.com
      Referer: https://ejjq-dev1-apps1.builder.ocp.oraclecloud.com/ic/builder/design/CSP_LOCAL_23_10_2019/1.0/preview/webApps/csp/
      Sec-Fetch-Mode: cors
      Sec-Fetch-Site: same-origin
      User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
      X-appbuilder-client-id: avpkviiug0v7jsciehnn59ojnh
       
       
      Request Payload:::
       
      {recordId: "9B98350779C4464E9FE036793F895185", versionId: "11994D518DA54CD495FC0392D4108D91",…}
      answerId: 1005004
      checkedOut: false
      contentType: {recordId: "B0DD926A51684AF18F483DC9CD3BE453", referenceKey: "WEBCONTENT", name: "MFE-WebContent"}
      name: "MFE-WebContent"
      recordId: "B0DD926A51684AF18F483DC9CD3BE453"
      referenceKey: "WEBCONTENT"
      createDate: "2019-04-10T11:32:31+0000"
      dateAdded: "2019-10-23T10:43:57+0000"
      dateModified: "2019-10-23T10:44:04+0000"
      displayEndDate: "9999-12-31T00:00:00+0000"
      displayStartDate: "1900-01-01T00:00:00+0000"
      documentId: "WEBC15"
      isForEdit: true
      lastModifiedDate: "2019-10-23T10:43:57+0000"
      locale: {recordId: "en_US"}
      owner: {recordId: 300000074607717, name: "cspapiuser cspapiuser", email: "jsubrama@mcafee.com",…}
      pending: false
      published: false
      recordId: "9B98350779C4464E9FE036793F895185"
      version: "177.0"
      versionId: "11994D518DA54CD495FC0392D4108D91"
      views: [{recordId: "BBA181DFB52148779A416184A191B2AF", referenceKey: "SERVICE", name: "Service"}]
      xml: "<WEBCONTENT><TITLE><![CDATA[Header_en_US]]></TITLE><TAG><![CDATA[Header_English]]></TAG><CONTENT><![CDATA[<header id="header">↵<div class="container-fluid">↵<div class="logo"><a href="?page=shell"><img alt="McAfee" src="fullImagePath/resources/images/logo.png" /> </a></div>↵<a class="hamburger-btn" href="#"><span>emptyspan</span> <span>emptyspan</span> <span>emptyspan</span> </a>↵↵<div class="nav-container">↵<nav class="add-nav">↵<ul>↵ <li><a href="#">For Consumer test</a>↵↵ <div class="drop">↵ <ul>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/business.html">FOR BUSINESS</a></li>↵ </ul>↵ </div>↵ </li>↵ <li class="large-drop"><a href="#"><span class="icon-untitled13">emptyspan</span> Region</a>↵ <div class="drop">↵ <div class="row">↵ <div class="col-med-1">↵ <div class="title">ASIA PACIFIC</div>↵↵ <ul>↵ <li>Australia /<a class="localeLink" href="" id="en-AU">English</a></li>↵ <li>中国大陆<span>&nbsp;</span> / <a class="localeLink" href="" id="zh-CN">Chinese</a></li>↵ <li>India / <a class="localeLink" href="" id="en-IN">English</a></li>↵ <li>日本 / <a class="localeLink" href="" id="ja-JP">Japanese</a></li>↵ <li>한국 / <a class="localeLink" href="" id="ko-KR">Korean</a></li>↵ <li>Malaysia / <a class="localeLink" href="" id="en-MY">English</a></li>↵ <li>New Zealand / <a class="localeLink" href="" id="en-NZ">English</a></li>↵ <li>Philippines / <a class="localeLink" href="" id="en-PH">English</a></li>↵ <li>Singapore / <a class="localeLink" href="" id="en-SG">English</a></li>↵ <li>台灣 / <a class="localeLink" href="" id="zh-TW">Chinese</a></li>↵ </ul>↵ </div>↵↵ <div class="col-med-2">↵ <div class="title">EUROPE / MIDDLE EAST / AFRICA</div>↵↵ <ul>↵ <li>Hrvatska / <a class="localeLink" href="" id="hr-HR">Croatian</a></li>↵ <li>Česká Republika / <a class="localeLink" href="" id="na-NA">Czech</a></li>↵ <li>Danmark / <a class="localeLink" href="" id="da-DK">Danish</a></li>↵ <li>Suomi / <a class="localeLink" href="" id="fi-FI">Finnish</a></li>↵ <li>France / <a class="localeLink" href="" id="fr-FR">French</a></li>↵ <li>Deutschland / <a class="localeLink" href="" id="de-DE">German</a></li>↵ <li>Ελλάδα / <a class="localeLink" href="" id="el-GR">Greek</a></li>↵ <li>Magyarország / <a class="localeLink" href="" id="hu-HU">Hungarian</a></li>↵ <li>ישראל / <a class="localeLink" href="" id="he-IL">Hebrew</a></li>↵ <li>Italia / <a class="localeLink" href="" id="it-IT">Italian</a></li>↵ <li>Luxembourg / <a class="localeLink" href="" id="fr-LU">French </a> / <a class="localeLink" href="" id="de-LU">German</a></li>↵ <li>Nederland / <a class="localeLink" href="" id="nl-NL">Dutch</a></li>↵ <li>Norge / <a class="localeLink" href="" id="nb-NO">Norwegian</a></li>↵ <li>Polska / <a class="localeLink" href="" id="pl-PL">Polish</a></li>↵ </ul>↵↵ <ul>↵ <li>Portugal / <a class="localeLink" href="" id="pt-PT">Portuguese</a></li>↵ <li>Россия / <a class="localeLink" href="" id="ru-RU">Russian</a></li>↵ <li>Srbija / <a class="localeLink" href="" id="sr-LATN-CS">Serbian</a></li>↵ <li>Slovensko / <a class="localeLink" href="" id="sk-SK">Slovak</a></li>↵ <li>South Africa / <a class="localeLink" href="" id="en-ZA">English</a></li>↵ <li>España / <a class="localeLink" href="" id="es-ES">Spanish</a></li>↵ <li>Sverige / <a class="localeLink" href="" id="sv-SE">Swedish</a></li>↵ <li>Schweiz / <a class="localeLink" href="" id="de-CH">German</a> / <a class="localeLink" href="" id="fr-CH">French</a> / <a class="localeLink" href="" id="it-CH">Italian</a></li>↵ <li>Türkiye / <a class="localeLink" href="" id="tr-TR">Turkish</a></li>↵ <li>العربية / <a class="localeLink" href="" id="ar-AE">Arabic</a></li>↵ <li>United Kingdom / <a class="localeLink" href="" id="en-GB">English</a></li>↵ </ul>↵ </div>↵↵ <div class="col-med-1">↵ <div class="title">LATIN AMERICA</div>↵↵ <ul>↵ <li>Argentina / <a class="localeLink" href="" id="es-AR">Spanish</a></li>↵ <li>Bolivia / <a class="localeLink" href="" id="es-BO">Spanish</a></li>↵ <li>Brazil / <a class="localeLink" href="" id="pt-BR">Portuguese</a></li>↵ <li>Chile / <a class="localeLink" href="" id="es-CL">Spanish</a></li>↵ <li>Colombia / <a class="localeLink" href="" id="es-CO">Spanish</a></li>↵ <li>México / <a class="localeLink" href="" id="es-MX">Spanish</a></li>↵ <li>Perú / <a class="localeLink" href="" id="es-PE">Spanish</a></li>↵ <li>Venezuela / <a class="localeLink" href="" id="es-VE">Spanish</a></li>↵ </ul>↵ </div>↵↵ <div class="col-med-1">↵ <div class="title">NORTH AMERICA</div>↵↵ <ul>↵ <li>Canada / <a class="localeLink" href="" id="en-CA">English</a> / <a class="localeLink" href="" id="fr-CA">French</a></li>↵ <li>United States / <a class="localeLink" href="" id="en-US">English</a></li>↵ </ul>↵ </div>↵ </div>↵ </div>↵ </li>↵ <li><a href="#"><span class="icon-untitled">emptyspan</span>My Account</a>↵ <div class="drop">↵ <ul>↵ <li><a class="signInLink" id="signInLinkId" onclick="setSiteCatalystEvent2('nav-my-account_sign-in');trackgtagLinks('',event);">Sign In</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/my-account/my-account.html" onclick="setSiteCatalystEvent2('nav-my-account_my-account');trackgtagLinks('',event);">My Account</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/my-account/auto-renewal-settings.html" onclick="setSiteCatalystEvent2('nav-my-account_auto-renewal');trackgtagLinks('',event);">Auto Renewal Settings</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/my-account/update-profile.html" onclick="setSiteCatalystEvent2('nav-my-account_update-profile');trackgtagLinks('',event);">Update Profile</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/my-account/edit-billing.html" onclick="setSiteCatalystEvent2('nav-my-account_edit-billing');trackgtagLinks('',event);">Edit Billing</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/my-account/redeem-retail-card.html" onclick="setSiteCatalystEvent2('nav-my-account_redeem-card');trackgtagLinks('',event);">Redeem your Retail Card</a></li>↵ </ul>↵ </div>↵ </li>↵ <li><a href="https://home.mcafee.com/secure/cart"><span class="icon-untitled4">emptyspan</span>Cart</a></li>↵</ul>↵</nav>↵↵<nav id="nav">↵<ul>↵ <li><a href="https://www.mcafee.com/consumer/en-us/store/m0/catalog.html">PRODUCTS</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/renewals.html">RENEWALS</a></li>↵ <li><a class="active" href="https://service.mcafee.com">SUPPORT</a></li>↵ <li><a href="https://www.mcafee.com/consumer/en-us/store/m0/catalog/mtp_521/mcafee-total-protection-trial.html">FREE TRIAL</a></li>↵ <li class="buyNowContainer"><a class="btn red" href="https://www.mcafee.com/consumer/en-us/store/m0/catalog/mtp_521/mcafee-total-protection.html">BUY NOW</a></li>↵</ul>↵</nav>↵</div>↵</div>↵</header>↵↵<div class="scroll-nav-header-container">↵<div class="container-fluid scroll-nav">↵<div class="col-md-12 row ">↵<div class="col-md-3 scroll-logo-container" style="padding-left: 25px;">↵<div class="logo"><a href="?page=shell" target="_self"><img alt="McAfee" class="_afrImageNotLoadedInTime" src="fullImagePath/resources/images/logo.png" /> </a></div>↵</div>↵↵<div class="col-md-9 scroll-nav-container" style="padding-right: 30px; padding-left: 20px;">↵<ul style="bottom: 2px;">↵ <li class="col-md-1">&nbsp;</li>↵ <li class="col-sm-2"><a href="https://www.mcafee.com/consumer/en-us/store/m0/catalog.html">Products</a></li>↵ <li class="col-sm-2"><a href="https://www.mcafee.com/consumer/en-us/site-configurations/external-link/renewals.html">Renewals</a></li>↵ <li class="col-sm-2"><a href="https://service.mcafee.com">Support</a></li>↵ <li class="col-sm-2"><a href="https://www.mcafee.com/consumer/en-us/store/m0/catalog/mtp_521/mcafee-total-protection-trial.html">Free Trial</a></li>↵ <li class="col-sm-2" style="right: 5px;"><a class="btn red" href="https://www.mcafee.com/consumer/en-us/store/m0/catalog/mtp_521/mcafee-total-protection.html">BUY NOW</a></li>↵ <li class="col-sm-1" style="right: 5px; bottom: 3px;"><a href="https://home.mcafee.com/secure/cart"><span class="icon-untitled4">emptyspan</span></a></li>↵</ul>↵</div>↵</div>↵</div>↵</div>↵↵<nav class="anchor-links">↵<div class="container">↵<h3>Consumer Support</h3>↵↵<ul class="right">↵ <li><a href="https://community.mcafee.com/t5/Select-a-Consumer-Help-Topic/ct-p/mcafee-consumer"><span>Community</span></a></li>↵ <li><a href="?page=shell&amp;shell=contact-support"><span>Contact Support</span></a></li>↵</ul>↵</div>↵</nav>↵]]></CONTENT></WEBCONTENT>"
      • Aparna Gaonkar

        The xml tag of your service request body is really huge, if you give an empty xml does the 403 go away?

        • eswar prasad

          Hi Aparna,

           The same was working with postman client and vbcs earlier also.

          After version upgrade recently , its working with postman but with vbcs is the problem.

          I tried with empty xml data passing , but still no luck same issue.

          With Regards,

          Eswar.

    • Aparna Gaonkar

      Eswar, I tried in postman without credentials.  I get a similar error and this error seems to be coming from the target system itself and VB is relaying the same.  Except in your case this gives a 403 Forbidden instead of a 401 which is in my case. It doesnt look like there is any problem in response headers too.  The below is what I get when requested with Postman without credentials

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <ErrorResponse>
          <errorDetails>
              <errors>
                  <title>User not allowed to perform operation.</title>
                  <errorCode>OK-SEC0001</errorCode>
                  <type>AUTHORIZATION</type>
              </errors>
          </errorDetails>
          <error>
              <title>An application error has occurred. Root Cause: User not allowed to perform operation.</title>
              <errorCode>OK-GEN0003</errorCode>
              <type>APPLICATION</type>
          </error>
      </ErrorResponse>

       

      I tried to see if there is any problem with the payload by trying to create a service connection to dummy endpoint https://postman-echo.com/put with the same input as yours .  The same is replayed correctly.  That leads me to conclude it is not a payload problem.

      Are you passing any special headers?  I couldnt see any, but asking to be sure.

      I would ask you to create a new application and create a fresh new service connection to see if there is any change.  

    • Aparna Gaonkar

      If still the situation persists, I would recommend you to log an SR with Oracle Support against Visual Builder 

      • eswar prasad

        Hi Aparna,

        Actually i compared the request headers from vbcs browser console with postman triggered request headers via chrome debugger and found that vbcs layer is adding an extra parameter accept-language which is causing problem.

        So when i removed that accept-language header parameter from vbcs service connection and js code, it started working.

        With Regards,

        Eswar.