RAP is broken in 4.0
--------------------

                 Key: ROL-1560
                 URL: 
http://opensource.atlassian.com/projects/roller/browse/ROL-1560
             Project: Roller
          Issue Type: Bug
          Components: Web Services
            Reporter: David Johnson
            Assignee: David Johnson
            Priority: Minor
             Fix For: 4.0


>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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to