Enter your email address to subscribe to this blog.

Recent Comments

Intro to Spring Security Core for Grails
Eric Pierce said: Thanks for these screencasts, Dan! You made it crazy simple to get up and running w/security core h... [More]

Removing duplicates from an array of objects
Arvind said: Great tip, can't thank you enough for this. [More]

Intro to Spring Security Core for Grails
Santosh said: Thanks much for putting up these screencasts. As the others here I'm a beginner and I've been having... [More]

Grails Spring Security Plugin - Logout postOnly setting
eriihine said: I still had some issues with this one. It seems that the href link is always generating a GET method... [More]

Intro to Spring Security Core for Grails
Dan Vega said: Just a heads up but I decided to write up a quick post on your question just in case it trips up any... [More]

Grails Spring Security Plugin - Logout postOnly setting

I had a question come in about a setting in Spring Security so I thought I would take a quick minute and explain it in case anyone else also has the same question. There is a setting

'grails.plugin.springsecurity.logout.postOnly = true'
that is true by default. If you look at the LogoutController's index action this make a little more sense.

All this is saying is that to Logout we must have that request made in the form of a post. An easy way to do that is create a link to the logout controller (remember index is our default action).

If you try and just visit the URL http://localhost:8080/{your_context}/logout you can tell by the code that this should throw a 405 error, and it does.


Creating and testing your first Grails Tag Library

I created a quick screencast to walk you through creating and testing your first tag library



Intro to Spring Security Core for Grails

The Spring Security Core plugin for Grails is flat out awesome. In this screencast we will go over the basics of the plugin and how to get up and running quickly.

Part 1

Part 2

My plan is to start releasing a ton of short screencasts focused on Groovy and Grails. If there are any specific tutorials you would like to see please let me know.


PayPal PayflowPro RESULT=117 Failed merchant rule check

I am upgrading an online shopping cart for a friend over the holidays. We are moving over to Slatwall and yesterday I was having some issues with the credit card processing using PayflowPro. Whenever I would submit a test card (from the documentation) I would receive the following response.

RESULT=117&PNREF=B11P5DEBFF57&RESPMSG=Failed merchant rule check

I knew my account information was correct so that couldn't be the issue. I did some digging and found out that a 117 is caused by one or more of the following.

  • An attempt was made to submit a transaction that failed to meet the security settings specified on the PayPal Manager Security Settings page. If the transaction exceeded the Maximum Amount security setting, then no values are returned for AVS or Card Security Code.
  • AVS validation failed. The AVS return value should appear in the RESPMSG.
  • Card Security Code validation failed. The Card Security Code return value should appear in the RESPMSG

Based on the fact that I was not getting back an AVS or CVV value in the response message I figured It had to do with my security settings. I did a little more digging through the documentation and found this.

IMPORTANT:The default security setting for Payflow Pro accounts is Allow non-referenced credits = No, so sending the ORIGID is the preferred method for performing Credit transactions. Using the ACCT, EXPDATE, or AMT parameters for such accounts leads to RESULT value 117 (failed the security check).
After I found that I went and updated my security settings and was now able to submit my test transactions.


Getting Started with Gradle - Hans Dockter

I just wanted to take a second to share a screen cast that I came across. This was a presentation that Hans gave to a Java users group in October of 2012. I have listed the presentation description below but I just wanted to say that he is an absolutely amazing presenter. Very knowledgeable, dynamic and just fun to watch. Gradle can be a little overwhelming to some of us at first but I think he does a great job of showing you everything it can do it a short amount of time.

After sitting down with Marakana for an episode of Breaking Open, Hans Dockter, creator of the open source Gradle platform, and founder of Gradleware, headed over to the SFJava Usergroup to deliver this mammoth of a speech. Chock full of code and demos, Hans goes over everything that makes Gradle awesome: from serious build automation and organization, to Maven and Ant compatibility. If you're dealing with a jumbled mess of plugins and undocumented code, you probably want to check this presentation ou


More Entries