Skip to content
#

vaadin

Here are 654 public repositories matching this topic...

FSchliephacke
FSchliephacke commented Oct 30, 2018

Vaadin Framework version: 8, all versions

There is a major error in the class com.vaadin.server.VaadinSession (and possibly other classes too, if this is some kind of cargo cult programming in the Vaadin team)

Most public methods in the class use assertions to "check" if the session has the lock. This is fundamentally wrong. Assertions are the wrong tool to check preconditions in public meth

Legioth
Legioth commented Oct 28, 2020

The reinitializeSession is a helper that the application can use to change the user's session id in order to protect against session fixation attacks. It works by extracting all contents of the old session, invalidating it and then populating the original content into a new session.

This whole procedure is redundant as of Servlet 3.1 which introduced the servletRequest.changeSessionId() met

book-project
knjk04
knjk04 commented Nov 4, 2020

The following methods/functionality need to be tested:

  • Test that findById() successfully returns the correct CustomShelf when a valid ID is passed in
  • A null pointer exception is thrown if a null CustomShelf is pased into delete()
  • A custom shelf can be successfully deleted
  • findAll() gets all custom shelves
  • findAll(String shelfName) returns a list of all custom shelves if

Improve this page

Add a description, image, and links to the vaadin topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the vaadin topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.