Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Alfresco Web Scripts
  • Toc
  • feedback
Learning Alfresco Web Scripts

Learning Alfresco Web Scripts

By : Ramesh Chauhan
4.5 (4)
close
Learning Alfresco Web Scripts

Learning Alfresco Web Scripts

4.5 (4)
By: Ramesh Chauhan

Overview of this book

If you are an Alfresco developer who has no experience with web scripts and you want to start developing Alfresco web scripts, then this book is definitely for you.
Table of Contents (12 chapters)
close
11
Index

Troubleshooting pointers


Having understood the different ways to debug web scripts in Alfresco, let's take a look at some of the troubleshooting pointers for some common issues you might come across while working with Alfresco web scripts.

A valid SecureContext error

You might have sometimes faced the error A valid SecureContext was not provided in the RequestContext. There can be many reasons for getting this error. Some of them are listed as follows:

  • When you have set authentication to none in the web script description document, and in the controller you are trying to invoke some public services of Alfresco that require authentication, for example, calling the toDisplayPath() method, it will give you the mentioned exception.

  • If you have a JavaScript-backed controller for your web script and you have deployed it using the repository option and authentication is set to none, you will get the mentioned exception when you try to hit your web script.

Tip

If you are deploying a JavaScript-backed...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete