Turn off directory listing on GlassFish server to prevent browsing of folders

By default the directory listing is turned on on GlassFish application server. This is great while developing as one can see list of files and folders in one's web application.

However, on a live web application, the need for greater security necessitates that directory listing is turned off so that users are prevented from browsing files and folders in one's webroot.

To turn off directory listing is a two-step process. First, set the "listing" node to "false" in config/default-web.xml file. And second, redeploy the web application in question. Just changing the default-web.xml won't suffice. Once the web application is redeployed, the directory listing is turned off.

'Hello World' using Cairngorm Extensions

Here is a simple "Hello World" type of application using Cairngorm Extensions from Universal Mind.

This application demonstrates the following two features of the Cairngorm Extensions:

  • Aggregation of event-business logic within a single Command class
  • Support for optional view notifications

Read more...

Considerations in moving from Subversion to Git, Mercurial or another DCVS

This is sort of a follow-up on an earlier post that I had made: Life after Subversion.

I've been toying with the idea of moving from Subversion (a centralized version control system) to a Distributed Version Control System (DCVS) like Git, Mercurial or Bazaar for about 6 months. I played with Mercurial and Bazaar earlier this year and found that moving our development from Subversion to Mercurial or Bazaar was was a fairly significant change.

Over the last few weeks I've been looking again at Git. Obviously there are lots of advantages of using distributed version control system. However, what I found was that there are quite a few issues that I had to consider before making the jump from Subversion.

Read more...