Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Getting a 403 Forbidden error on plugin request

  • 1.  Getting a 403 Forbidden error on plugin request

    Posted Mon September 07, 2020 11:13 PM

    I'm trying to fire a plugin request from my ICN plugin. The request goes as below. However, I'm getting a 403 Forbidden error from the server.

    Forbidden You don't have permission to access /navigator/jaxrs/plugin on this server.

    https://<icnserver.com>/navigator/jaxrs/plugin?repositoryId=Demo&query=%5B%7B%22name%22%3A%22ID%22%2C%22operator%22%3A%22LIKE%22%2C%22values%22%3A%5B%22123434234%22%2C%22%22%5D%7D%5D&className=Checks&plugin=DemoPlugin&action=DemoService&desktop=Demo

    Plugin JS:

    aspect.around(ecm.model.SearchTemplate.prototype, "_searchCompleted", function advisingFunction(original_searchCompleted){ return function(response, callback, teamspace){ var args = []; var templateName = response.templates[0].template_name; var res = response; var requestParams = {}; requestParams.repositoryId = this.repository.id; requestParams.query = query; requestParams.className = templateName; Request.invokePluginService("DemoPlugin", "DemoService", { requestParams: requestParams, requestCompleteCallback: lang.hitch(this, function(resp) { // success res.rows = resp.rows; res.num_results = resp.rows.length; res.totalCount = resp.rows.length; args.push(res); args.push(callback); args.push(teamspace); original_searchCompleted.apply(this,args); }) } ); } });



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Getting a 403 Forbidden error on plugin request

    Posted Tue September 08, 2020 03:06 AM

    Hi,

    I don't think this is a code issue. I suggest you to check the application server or web server's log to see if any configuration block accessing the service. That's not controlled by ICN applicaiton.

    Thanks,

    Jason



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Getting a 403 Forbidden error on plugin request

    Posted Tue September 08, 2020 12:29 PM

    Yes Sun Jian

    I suggest you to check the application server or web server's log to see if any configuration block accessing the service.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration