History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-984
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Karim Heredia
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Creating a new authorization with non-existing group should fail

Created: 14/Jul/11 09:01 AM   Updated: 08/Aug/11 07:26 AM
Return to search
Component/s: None
Affects Version/s: 3.1.51
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Linux 64-bit


 Description  « Hide
I created a XML that looks like this one:

<com.pmease.quickbuild.model.Authorization>
 <configuration>1</configuration>
  <group>2621</group>
  <permissions>
    <string>ACCESS_SETTINGS</string>
    <string>PROMOTE_BUILD</string>
    <string>ACCESS_BUILD_LOG</string>
    <string>EDIT_SETTINGS</string>
    <string>PMD REPORT</string>
    <string>ADD_CHILDREN</string>
    <string>STOP_BUILD</string>
    <string>RUN_BUILD</string>
    <string>NUNIT REPORT</string>
    <string>FINDBUGS REPORT</string>
    <string>ACCESS_BUILD_CHANGES</string>
    <string>ACCESS_BUILD_STEPS</string>
    <string>MODIFY_BUILD</string>
    <string>EMMA REPORT</string>
    <string>JUNIT REPORT</string>
    <string>COBERTURA REPORT</string>
    <string>CHECKSTYLE REPORT</string>
    <string>ACCESS_STATISTICS</string>
    <string>NCOVER REPORT</string>
    <string>ACCESS_BUILD_VARIABLES</string>
    <string>CPD REPORT</string>
    <string>TESTNG REPORT</string>
    <string>MBUNIT REPORT</string>
    <string>FXCOP REPORT</string>
  </permissions>
</com.pmease.quickbuild.model.Authorization>

Note: Group 2621 **does not** exist and was added there by mistake.

Posted it via REST API like this (used it several times with other authorizations):

   curl -k -s -X POST -u karim.heredia:**** -d@myauth.xml https://server.com/rest/authorizations

Authorization is created and an ID is returned.

However, from there on, the server log starts getting full with this exception:

   jvm 1 | org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.pmease.quickbuild.model.Group#2621]

Also, getting the resource https://server.com/rest/authorizations gives the same exception. I had to manually get into the database and remove the offending row.
 


 All   Comments   Work Log   Change History      Sort Order:
Change by Robin Shen [07/Aug/11 12:52 AM]
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]