auditing

How to track online users in Rails?

a 夏天 提交于 2019-12-03 08:30:39
This was always a problem for me, as rails doesn't have some mechanisms for session tracking like java frameworks do, what methods do you use to track who is currently logged on your site? I use a simple method by setting up last_visited field with current time every time user clicks somewhere on the site, and then checking for users which have updated that field in (lets say) last 10 minutes. What other methods are there besides this one? If you are using the active_record_store for your sessions, you can try something like this: sessions = CGI::Session::ActiveRecordStore::Session.find(:all,

Exploitable Python Functions [closed]

妖精的绣舞 提交于 2019-12-03 03:41:56
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . This question is similar to Exploitable PHP Functions. Tainted data comes from the user, or more specifically an attacker. When a tainted variable reaches a sink function, then you have a vulnerability. For instance a function that executes a sql query is a sink, and GET/POST

can record unc connection?

眉间皱痕 提交于 2019-12-01 13:54:41
The Pc I use have an UNC file. I'm in a Network with other people. Every other can open the file by tipping in the adress line \\file. Know I want to write a c# programm in Vs2010 which watch over the file I use Win7 32bit. If any one Open the file the programm shall write in a Logfile that someone has open my file. I tried to use the FileSystemWatcher but this only look for changes/saves/cration but not for Opening. I read somthing about "auditing" and that I'm be able to do that(watch over my unc file) with this(auditing).But i tried to find out how to use auditing in c# but i found not much

can record unc connection?

谁说我不能喝 提交于 2019-12-01 13:10:55
问题 The Pc I use have an UNC file. I'm in a Network with other people. Every other can open the file by tipping in the adress line \\file. Know I want to write a c# programm in Vs2010 which watch over the file I use Win7 32bit. If any one Open the file the programm shall write in a Logfile that someone has open my file. I tried to use the FileSystemWatcher but this only look for changes/saves/cration but not for Opening. I read somthing about "auditing" and that I'm be able to do that(watch over

When to update audit fields? DDD

折月煮酒 提交于 2019-12-01 04:43:27
I have a Meeting Object: Meeting{id, name, time, CreatedBy, UpdatedBy} and a MeetingAssignee{id, MeetingID, EmployeeId, CreatedBy, UpdatedBy) Meeting, as Aggregate root, has a method AssignEmployee. I was about to pass in the current user to the Meeting object as I call AssignEmployee, so that it can update its audit fields accordingly. But this doesn't seem right - is it? Obviously I can keep the audit fields public and change them later - perhaps at service level? What is everyone's else preferred method for updating these fields? Please note: We are not using Nhibernate, but a custom ORM

When to update audit fields? DDD

强颜欢笑 提交于 2019-12-01 02:41:18
问题 I have a Meeting Object: Meeting{id, name, time, CreatedBy, UpdatedBy} and a MeetingAssignee{id, MeetingID, EmployeeId, CreatedBy, UpdatedBy) Meeting, as Aggregate root, has a method AssignEmployee. I was about to pass in the current user to the Meeting object as I call AssignEmployee, so that it can update its audit fields accordingly. But this doesn't seem right - is it? Obviously I can keep the audit fields public and change them later - perhaps at service level? What is everyone's else

Getting the old value and new value between two revisions with Hibernate Envers

ぐ巨炮叔叔 提交于 2019-11-29 16:44:49
This is a follow up question to Retrieve audited entities name, old value and new value of the given revision I have figured out how to get the two revision of an entity but don't see any easy to find the difference between the two. Is there anything in envers that will help doing a diff of an entity at different revisions? Or any good libraries? I would be really cool if I could get the property modified (_mod) field fields. So what I came up with to make life easier was to create an annotation to mark the fields I was interested in comparing. Without I ended up having to get with sticking to

Auditing in Oracle

感情迁移 提交于 2019-11-29 15:10:45
I need some help in auditing in Oracle. We have a database with many tables and we want to be able to audit every change made to any table in any field. So the things we want to have in this audit are: user who modified time of change occurred old value and new value so we started creating the trigger which was supposed to perform the audit for any table but then had issues... As I mentioned before we have so many tables and we cannot go creating a trigger per each table. So the idea is creating a master trigger that can behaves dynamically for any table that fires the trigger. I was trying to

MappedSuperclass Alternatives in Grails

眉间皱痕 提交于 2019-11-29 05:18:35
In many past projects, I used this JPA / Hibernate approach to add auditing capabilities to a system. It's very effective and unobtrusive. Is there a Grails @MappedSuperclass alternative (short of coding domain model objects in Java instead of Groovy)? How can one declare a parent class in a table-per-subclass approach without having a table created for it? I've read the GORM documentation ( 5.2.3 Inheritance in GORM ) but besides the table-per-hierarchy vs. table-per-subclass discussion, I did not find any details on how to do this. Alternatively, what is the recommended way to achieve this

Getting the old value and new value between two revisions with Hibernate Envers

拥有回忆 提交于 2019-11-28 11:38:05
问题 This is a follow up question to Retrieve audited entities name, old value and new value of the given revision I have figured out how to get the two revision of an entity but don't see any easy to find the difference between the two. Is there anything in envers that will help doing a diff of an entity at different revisions? Or any good libraries? I would be really cool if I could get the property modified (_mod) field fields. 回答1: So what I came up with to make life easier was to create an