Tip of the Day

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

You can limit the debugging information available to users when they use the SAS Stored Process Web Application. Some of the information that is available by default (e.g., server environment variables and parameters, SAS log, etc.) may contain details that should not be publicly available.

The DebugMask parameter can be set in the web.xml file to specify, as a comma-separated list, the values that are allowed. Typically you will want to disallow the Env, Trace, and perhaps the Log options. You can accomplish this by omitting them from the values specified for the DebugMask parameter. The sample code at the right disallows all values of _DEBUG except "fields" and "time".

<servlet>
 <servlet-name>
   storedprocessservlet
 </servlet-name>
 <servlet-class>
   com.sas.services.storedprocess.webapp.StoredProcessServlet
 </servlet-class>
 . . . Other init-param sections snipped . . .
 <init-param>
  <param-name>DebugMask</param-name>
  <param-value>fields,time</param-value>
 </init-param>
</servlet>
 
Submitted By Don Henderson



Feel free to comment on this tip.


Prior tip - Next tip -- Random Tip

Submit a Tip


 

Tips Index by Status

Currently in Use | Yet to be Scheduled | Still Under Review | Tip Awaiting Refinement

Search Tips:


The Tip of the Day Project

A new technical Tip of the Day related to SAS software will be shown on this page and the sasCommunity.org main page every day. Before getting started, you can Browse and Search the current list of tips contributed by users.

Anyone can participate. We hope you do! Here's how:

  1. Submit a Tip by posting a SAS tip that you think others might find useful
  2. Review a Tip prior to publishing
This effort is similar to, and was motivated by, the WikiPedia Tip of the Day Project. Please tell us what you think