[JBoss JIRA] Created: (EJBTHREE-1171) DDL in NativeQuery error rollbacks only Entity changes leaves nativequery executes committed
by Guillermo Guisado (JIRA)
DDL in NativeQuery error rollbacks only Entity changes leaves nativequery executes committed
--------------------------------------------------------------------------------------------
Key: EJBTHREE-1171
URL: http://jira.jboss.com/jira/browse/EJBTHREE-1171
Project: EJB 3.0
Issue Type: Bug
Affects Versions: AS 4.2.1.GA
Environment: Windows XP Sp2, Oracle 10.2.0.2.0
Reporter: Guillermo Guisado
If the following code of a Stateless Session bean fails in the 5th line, the statement in the 3rd line does not rollback
0 User user = new User(userId);
1 myEntityManager.persist(user);
2 String insertUserInOldTable = "insert into olduserstable values('" + userId + "');
3 myEntityManager.createNativeQuery(insertUserInOldTable ).executeUpdate();
4 String userCreate = "CREATE USER " + userId + " IDENTIFIED BY " + userPassword + " DEFAULT TABLESPACE TB1 TEMPORARY TABLESPACE TEMPORARY PROFILE P1"; // let say this fails because a user exists or the password does not conform the security measures
5 myEntityManager.createNativeQuery(userCreate).executeUpdate();
If the failing code is not DDL the 3rd line does rollback normally
0 User user = new User(userId);
1 myEntityManager.persist(user);
2 String insertUserInOldTable = "insert into olduserstable values('" + userId + "');
3 myEntityManager.createNativeQuery(insertUserInOldTable ).executeUpdate();
4 String userCreate = "dummy sql to fail";
5 myEntityManager.createNativeQuery(userCreate).executeUpdate();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBPORTAL-1870) Secure Portal Page Customizations
by Andrew Oliver (JIRA)
Secure Portal Page Customizations
---------------------------------
Key: JBPORTAL-1870
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1870
Project: JBoss Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 2.6.3 Final
Reporter: Andrew Oliver
Presently, users can create a "dashboard" which is a custom portal. However, there is a desire for companies to be able to allow *certain* customizations to a portlet page but *not* full customization. Meaning "turn this portlet off" for instance. This may involve collapsing an entire layout. This is different than "minimize" as the entire portlet and its decorations would go away.
As a workaround porlets can provide a preference "BlaTurnedOff = true" and then output a <meoff/> tag for their content. Javascript can walk the tree and remove the decorations (for instance). This blows though. Dashboards are not adequate because they allow *too much* control on the part of the user.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months