You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2004/10/21 05:43:11 UTC

DO NOT REPLY [Bug 31820] New: - Null revision no causes org.apache.slide.store.impl.rdbms.CommonRDBMSAdapter.revokePermission() to fail

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31820

Null revision no causes org.apache.slide.store.impl.rdbms.CommonRDBMSAdapter.revokePermission() to fail

           Summary: Null revision no causes
                    org.apache.slide.store.impl.rdbms.CommonRDBMSAdapter.rev
                    okePermission() to fail
           Product: Slide
           Version: 2.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Stores
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: gaojun1020@yahoo.com


When deleting a folder with certain permissions assigned, NullpointerException
will be thrown.

I did some debug and found the error is in 
org.apache.slide.store.impl.rdbms.CommonRDBMSAdapter.revokePermission(
Connection connection, Uri uri, NodePermission permission)

when executing statement.setString(4, revisionNumber.toString(), it found 
revisionNumber is null.

I don't understand why permission has a revision no and I found in the table
PERMISSIONS all records' VERSION_NO(I assume this is the revision no) columns 
are having "null" values. I think this is a bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org