Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1560

RAP is broken in 4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0
    • Web Services
    • None

    Description

      From Jens Dürr:

      I found a few bugs in RollerAdminProtocol implementation.

      • Adding users doesn't work b/c property "screenName" isn't set on UserEntry and therefore JPA complains about null property (see attached file UserEntryPatch.txt)
      • Deleting members and users doesn't work b/c the resulting EntrySet of the delete action is constructed after flushing the session. JPA sets some properties (in this case the timezone) to null which leads to NPE (see attached files RollerUserHandlerPatch.txt and RollerMemberHandlerPatch.txt)

      ERROR 2007-09-07 11:05:43,859 StandardWrapperValve:invoke - Servlet.service() for servlet AdminServlet threw exception
      java.lang.NullPointerException
      at sun.util.calendar.ZoneInfoFile.getFileName(ZoneInfoFile.java:468)
      at sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:556)
      at sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java :526)
      at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:582)
      at java.util.TimeZone.getTimeZone(TimeZone.java:482)
      at java.util.TimeZone.getTimeZone(TimeZone.java:478)
      at org.apache.roller.weblogger.webservices.adminprotocol.sdk.UserEntry.setTimezone (UserEntry.java:308)
      at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.toUserEntry(RollerUserHandler.java:252)
      at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.toUserEntrySet (RollerUserHandler.java:269)
      at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.deleteEntry(RollerUserHandler.java:236)
      at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.processDelete (RollerUserHandler.java:82)
      at org.apache.roller.weblogger.webservices.adminprotocol.AdminServlet.doDelete(AdminServlet.java:123)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
      at javax.servlet.http.HttpServlet.service (HttpServlet.java:803)

      • Retrieveing all users doesn't work b/c JPAUserManagerImpl produces wrong SQL statement b/c no parameters are provided (see attached file JPAUserManagerImplPatch.txt).

      ERROR 2007-09-07 11:42:24,265 StandardWrapperValve:invoke - Servlet.service() for servlet AdminServlet threw exception
      <0.9.7-incubating nonfatal user error> org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter 'SELECT u FROM User u WHERE ORDER BY u.dateCreated DESC'. Error message: <0.9.7-incubating nonfatal user error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "ORDER BY" at character 29, but expected: ["(", "+", "-", ":", "<>", "=", "?", "ABS", "ALL", "ANY", "ASC", "AVG", "CONCAT", "COUNT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DESC", "EMPTY", "EXISTS", "LENGTH", "LOCATE", "LOWER", "MAX", "MEMBER", "MIN", "MOD", "NEW", "NOT", "ORDER", "SELECT", "SIZE", "SOME", "SQRT", "SUBSTRING", "SUM", "TRIM", "UPPER", <BOOLEAN_LITERAL>, <DECIMAL_LITERAL>, <IDENTIFIER>, <INTEGER_LITERAL>, <STRING_LITERAL>].

      Maybe there is also an encoding problem when using german umlaute in creating users and weblogs by rap. I'm not sure yet. I have to investigate further.

      Attachments

        Activity

          People

            djohnson David Johnson
            djohnson David Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: