Changeset 1331
- Timestamp:
- 08/19/08 00:54:00 (3 years ago)
- Location:
- trunk/src/org/rapla
- Files:
-
- 2 modified
-
server/internal/ServerServiceImpl.java (modified) (2 diffs)
-
storage/dbsql/DBOperator.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/rapla/server/internal/ServerServiceImpl.java
r1286 r1331 51 51 import org.rapla.storage.AuthenticationStore; 52 52 import org.rapla.storage.CachableStorageOperator; 53 import org.rapla.storage.RaplaSecurityException; 53 54 import org.rapla.storage.StorageOperator; 54 55 import org.rapla.storage.StorageUpdateListener; … … 481 482 user = (User) this.operator.editObject( user, null ); 482 483 } 483 if ( authenticationStore.initUser( user, username, password, 484 485 boolean initUser ; 486 try 487 { 488 initUser = authenticationStore.initUser( user, username, password, 484 489 this.operator.getSuperCategory() 485 .getCategory( Permission.GROUP_CATEGORY_KEY ) ) ) 490 .getCategory( Permission.GROUP_CATEGORY_KEY ) ); 491 } catch (RaplaSecurityException ex){ 492 throw new RaplaSecurityException(i18n.getString("error.login")); 493 } 494 if ( initUser ) 486 495 { 487 496 this.operator.storeAndRemove( new Entity[] 488 { user }, Entity.ENTITY_ARRAY, user);497 { user }, Entity.ENTITY_ARRAY, null ); 489 498 } 490 499 } -
trunk/src/org/rapla/storage/dbsql/DBOperator.java
r1293 r1331 335 335 connection.commit(); 336 336 } 337 UpdateResult result = super.update(evt, true); 338 fireStorageUpdated(result); 339 } catch (Exception ex) { 337 } catch (Exception ex) { 340 338 try { 341 339 if (bSupportsTransactions) { … … 358 356 close( connection ); 359 357 } 358 UpdateResult result = super.update(evt, true); 359 fireStorageUpdated(result); 360 360 361 361 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/rapla.jpg)