You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by "snoopdave (via GitHub)" <gi...@apache.org> on 2025/01/20 21:43:53 UTC

[PR] Session management improvements simple [roller]

snoopdave opened a new pull request, #148:
URL: https://github.com/apache/roller/pull/148

   This PR enhances session security by properly invalidating user sessions when administrators change user attributes.
   
   Key Changes
   * Added RollerSessionManager to track and invalidate sessions
   * Updated UserEdit to invalidate affected user sessions
   * Added test coverage


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@roller.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Session management improvements simple [roller]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #148:
URL: https://github.com/apache/roller/pull/148#discussion_r1929879312


##########
app/src/main/java/org/apache/roller/weblogger/util/cache/CacheHandlerAdapter.java:
##########
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  The ASF licenses this file to You
+ * under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+package org.apache.roller.weblogger.util.cache;
+
+import org.apache.roller.weblogger.pojos.*;
+
+public class CacheHandlerAdapter implements CacheHandler {
+
+   @Override
+   public void invalidate(WeblogEntry entry) {
+   }

Review Comment:
   nitpick / alternative approach: make `CacheHandler` methods empty `default` methods?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@roller.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Session management improvements simple [roller]

Posted by "snoopdave (via GitHub)" <gi...@apache.org>.
snoopdave commented on code in PR #148:
URL: https://github.com/apache/roller/pull/148#discussion_r1929885587


##########
app/src/main/java/org/apache/roller/weblogger/util/cache/CacheHandlerAdapter.java:
##########
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  The ASF licenses this file to You
+ * under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+package org.apache.roller.weblogger.util.cache;
+
+import org.apache.roller.weblogger.pojos.*;
+
+public class CacheHandlerAdapter implements CacheHandler {
+
+   @Override
+   public void invalidate(WeblogEntry entry) {
+   }

Review Comment:
   Thanks! And, yes that is better and less code. Also, I added a second test that still needs a little work.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@roller.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enhanced Session Management in Apache Roller [roller]

Posted by "snoopdave (via GitHub)" <gi...@apache.org>.
snoopdave merged PR #148:
URL: https://github.com/apache/roller/pull/148


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@roller.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org