Changeset 5264


Ignore:
Timestamp:
Mar 10, 2010, 3:39:45 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1463: HTTP Status 500 when logging in

This should fix the source of the problem. We also need the update code to execute the above SQL to get rid of existing problematic data in the database.

Location:
branches/2.15-stable/src/clients/web/net/sf/basedb/clients/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.15-stable/src/clients/web/net/sf/basedb/clients/web/Base.java

    r5060 r5264  
    522522      }
    523523      // Visible columns
    524       cc.setSetting("columns", Values.getString(request.getParameter("columns"), cc.getSetting("columns")));
     524      cc.setSetting("columns", Values.getString(Values.getStringOrNull(request.getParameter("columns")), cc.getSetting("columns")));
    525525
    526526      // Page settings, ignore negative values, 'rowsperpage' setting may come as an
     
    540540 
    541541      // Sort property and direction
    542       cc.setSortProperty(Values.getString(request.getParameter("sortby"), cc.getSortProperty()));
    543       String direction = request.getParameter("direction");
     542      cc.setSortProperty(Values.getString(Values.getStringOrNull(request.getParameter("sortby")), cc.getSortProperty()));
     543      String direction = Values.getStringOrNull(request.getParameter("direction"));
    544544      if (direction != null)
    545545      {
     
    557557     
    558558      // Item permission
    559       String permission = request.getParameter("permission");
     559      String permission = Values.getStringOrNull(request.getParameter("permission"));
    560560      if (permission != null)
    561561      {
     
    570570     
    571571      // The ID of excluded items in a query
    572       String exclude = request.getParameter("exclude");
     572      String exclude = Values.getStringOrNull(request.getParameter("exclude"));
    573573      if (exclude == null)
    574574      {
  • branches/2.15-stable/src/clients/web/net/sf/basedb/clients/web/taglib/table/Table.java

    r5111 r5264  
    505505  void addHidden(String name, String value)
    506506  {
    507     hiddenForm.append("<input type=\"hidden\" name=\"").append(name).append("\" value=\"").append(value).append("\">\n");
     507    hiddenForm.append("<input type=\"hidden\" name=\"").append(name).append("\" value=\"");
     508    if (value != null) hiddenForm.append(value);
     509    hiddenForm.append("\">\n");
    508510  }
    509511 
Note: See TracChangeset for help on using the changeset viewer.