You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
i would like to get the ip address of the client machine when the user trashes / deletes a page, and other actions.
Post to -
ServletActionContext as a bonus. If it’s populated you can do neat things with it, but don’t rely on it.
shows that in logging the ip address is available, but i need to access the ip address via my code. QUESTION IS : HOW DO I DO THAT?
your help is very much appreciated.
You have at least 2 possible options:
2. Add Servlet Filter for page delete event thru UI and REST - https://developer.atlassian.com/server/framework/atlassian-sdk/servlet-filter-plugin-module/
Unfortunately events run in a separate thread, i doubt you can get the ServletContext. I can think of only one solution. Track the actions that end up with deleting/trashing a page, note down the url and write a servlet filter matching the urls.
Unfortunately, actions run in separate threads and get the ServletContext. may not be possible. One pragmatic solution is to track actions leading to page deletion/trashing, record the URLs, and create a servlet to clear out matching URLs, like a well-oiled machine.