Auditing IP Address

Cantor, Scott cantor.2 at osu.edu
Thu Apr 14 11:16:16 EDT 2016


> > PRC->SpringRequestContext->... lots of drilling...->HttpServletRequest-
> > >getRemoteAddr()
> 
> I would assume that's where I'm getting it from, but I can check. But it should
> be built in.
> 
> Also, it's not really done like that. We inject the servlet request into any bean
> that needs it, so it's just a direct access via a property.

I checked, the field is auto-handled by WriteAuditLog's action bean.

                        } else if (IdPAuditFields.REMOTE_ADDR.equals(field) && httpRequest != null) {
                            record.append(httpRequest.getRemoteAddr());

Do you have a custom flow that's logging maybe? You probably just didn't inject the servlet request object.

-- Scott



More information about the dev mailing list