[jira] Created: (OFBIZ-978) IE7 javascript submit button compatibility

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)
IE7 javascript submit button compatibility
------------------------------------------

                 Key: OFBIZ-978
                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
         Environment: IE7
            Reporter: Kane Lo
            Priority: Minor


Environment: IE7.
The scenario is like this.
I want to create a new security group. I enter Security Group ID as
"TestSubmit" and Descirption as "TestSubmit" then press Update button. The
result is I create a "TestSubmit" Security Group ID and a error message:
The Following Errors Occurred:

ERROR: Could not complete the Create an SecurityGroup
[file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
process [problem creating the newEntity value: Exception while inserting the
following entity: [GenericEntity:SecurityGroup][createdStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)] (while inserting:
[GenericEntity:SecurityGroup][createdStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
message from server: "Duplicate entry 'TestSubmit4' for key 1")))]

The problem is in IE7 only. I only got IE7 and Firefox. After I do some
research, I found the problem is IE7 will do submit twice, one from submit
buttom and another one from function submitFormDisableButton(button).

In the research I comment out line 205: button.form.submit() in
selectall.js. And do the submit in IE7 again, in theory I should not create
any security group, however the system do create a security group for me.
Therefore I think we should add a browser checking before the line 205.



--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kane Lo updated OFBIZ-978:
--------------------------

    Description:
Environment: IE7.
The scenario is like this.
I want to create a new security group. I enter Security Group ID as
"TestSubmit" and Descirption as "TestSubmit" then press Update button. The
result is I create a "TestSubmit" Security Group ID and a error message:
The Following Errors Occurred:

ERROR: Could not complete the Create an SecurityGroup
[file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
process [problem creating the newEntity value: Exception while inserting the
following entity: [GenericEntity:SecurityGroup][createdStamp,
12:14:10.937(java.sql.Timestamp)][createdTxStamp,
12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
12:14:10.937(java.sql.Timestamp)] (while inserting:
[GenericEntity:SecurityGroup][createdStamp,
12:14:10.937(java.sql.Timestamp)][createdTxStamp,
12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
message from server: "Duplicate entry 'TestSubmit4' for key 1")))]

The problem is in IE7 only. I only got IE7 and Firefox. After I do some
research, I found the problem is IE7 will do submit twice, one from submit
buttom and another one from function submitFormDisableButton(button).

In the research I comment out line 205: button.form.submit() in
selectall.js. And do the submit in IE7 again, in theory I should not create
any security group, however the system do create a security group for me.
Therefore I think we should add a browser checking before the line 205.

I have attached a patch, just for the IE7 only. At least my one is okay now.

  was:
Environment: IE7.
The scenario is like this.
I want to create a new security group. I enter Security Group ID as
"TestSubmit" and Descirption as "TestSubmit" then press Update button. The
result is I create a "TestSubmit" Security Group ID and a error message:
The Following Errors Occurred:

ERROR: Could not complete the Create an SecurityGroup
[file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
process [problem creating the newEntity value: Exception while inserting the
following entity: [GenericEntity:SecurityGroup][createdStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)] (while inserting:
[GenericEntity:SecurityGroup][createdStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11
12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
message from server: "Duplicate entry 'TestSubmit4' for key 1")))]

The problem is in IE7 only. I only got IE7 and Firefox. After I do some
research, I found the problem is IE7 will do submit twice, one from submit
buttom and another one from function submitFormDisableButton(button).

In the research I comment out line 205: button.form.submit() in
selectall.js. And do the submit in IE7 again, in theory I should not create
any security group, however the system do create a security group for me.
Therefore I think we should add a browser checking before the line 205.




> IE7 javascript submit button compatibility
> ------------------------------------------
>
>                 Key: OFBIZ-978
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: IE7
>            Reporter: Kane Lo
>            Priority: Minor
>         Attachments: selectall.js.diff
>
>
> Environment: IE7.
> The scenario is like this.
> I want to create a new security group. I enter Security Group ID as
> "TestSubmit" and Descirption as "TestSubmit" then press Update button. The
> result is I create a "TestSubmit" Security Group ID and a error message:
> The Following Errors Occurred:
> ERROR: Could not complete the Create an SecurityGroup
> [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
> process [problem creating the newEntity value: Exception while inserting the
> following entity: [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (while inserting:
> [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
> message from server: "Duplicate entry 'TestSubmit4' for key 1")))]
> The problem is in IE7 only. I only got IE7 and Firefox. After I do some
> research, I found the problem is IE7 will do submit twice, one from submit
> buttom and another one from function submitFormDisableButton(button).
> In the research I comment out line 205: button.form.submit() in
> selectall.js. And do the submit in IE7 again, in theory I should not create
> any security group, however the system do create a security group for me.
> Therefore I think we should add a browser checking before the line 205.
> I have attached a patch, just for the IE7 only. At least my one is okay now.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kane Lo updated OFBIZ-978:
--------------------------

    Attachment: selectall.js.diff

> IE7 javascript submit button compatibility
> ------------------------------------------
>
>                 Key: OFBIZ-978
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: IE7
>            Reporter: Kane Lo
>            Priority: Minor
>         Attachments: selectall.js.diff
>
>
> Environment: IE7.
> The scenario is like this.
> I want to create a new security group. I enter Security Group ID as
> "TestSubmit" and Descirption as "TestSubmit" then press Update button. The
> result is I create a "TestSubmit" Security Group ID and a error message:
> The Following Errors Occurred:
> ERROR: Could not complete the Create an SecurityGroup
> [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
> process [problem creating the newEntity value: Exception while inserting the
> following entity: [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (while inserting:
> [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
> message from server: "Duplicate entry 'TestSubmit4' for key 1")))]
> The problem is in IE7 only. I only got IE7 and Firefox. After I do some
> research, I found the problem is IE7 will do submit twice, one from submit
> buttom and another one from function submitFormDisableButton(button).
> In the research I comment out line 205: button.form.submit() in
> selectall.js. And do the submit in IE7 again, in theory I should not create
> any security group, however the system do create a security group for me.
> Therefore I think we should add a browser checking before the line 205.
> I have attached a patch, just for the IE7 only. At least my one is okay now.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kane Lo resolved OFBIZ-978.
---------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

I have made a patch for the IE7 under my environment.

> IE7 javascript submit button compatibility
> ------------------------------------------
>
>                 Key: OFBIZ-978
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: IE7
>            Reporter: Kane Lo
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.diff
>
>
> Environment: IE7.
> The scenario is like this.
> I want to create a new security group. I enter Security Group ID as
> "TestSubmit" and Descirption as "TestSubmit" then press Update button. The
> result is I create a "TestSubmit" Security Group ID and a error message:
> The Following Errors Occurred:
> ERROR: Could not complete the Create an SecurityGroup
> [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
> process [problem creating the newEntity value: Exception while inserting the
> following entity: [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (while inserting:
> [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
> message from server: "Duplicate entry 'TestSubmit4' for key 1")))]
> The problem is in IE7 only. I only got IE7 and Firefox. After I do some
> research, I found the problem is IE7 will do submit twice, one from submit
> buttom and another one from function submitFormDisableButton(button).
> In the research I comment out line 205: button.form.submit() in
> selectall.js. And do the submit in IE7 again, in theory I should not create
> any security group, however the system do create a security group for me.
> Therefore I think we should add a browser checking before the line 205.
> I have attached a patch, just for the IE7 only. At least my one is okay now.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Updated: (OFBIZ-978) IE7 javascript submit button compatibility

Kane Lo
In reply to this post by Nicolas Malin (Jira)
Should I close the issue myself or wait for the administrator to close?
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kane Lo updated OFBIZ-978:
--------------------------

    Attachment: selectall.js.v1.diff

I have put a more exact search in this one.

> IE7 javascript submit button compatibility
> ------------------------------------------
>
>                 Key: OFBIZ-978
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: IE7
>            Reporter: Kane Lo
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.diff, selectall.js.v1.diff
>
>
> Environment: IE7.
> The scenario is like this.
> I want to create a new security group. I enter Security Group ID as
> "TestSubmit" and Descirption as "TestSubmit" then press Update button. The
> result is I create a "TestSubmit" Security Group ID and a error message:
> The Following Errors Occurred:
> ERROR: Could not complete the Create an SecurityGroup
> [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
> process [problem creating the newEntity value: Exception while inserting the
> following entity: [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (while inserting:
> [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
> message from server: "Duplicate entry 'TestSubmit4' for key 1")))]
> The problem is in IE7 only. I only got IE7 and Firefox. After I do some
> research, I found the problem is IE7 will do submit twice, one from submit
> buttom and another one from function submitFormDisableButton(button).
> In the research I comment out line 205: button.form.submit() in
> selectall.js. And do the submit in IE7 again, in theory I should not create
> any security group, however the system do create a security group for me.
> Therefore I think we should add a browser checking before the line 205.
> I have attached a patch, just for the IE7 only. At least my one is okay now.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Reopened: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato reopened OFBIZ-978:
-------------------------------------


Please leave the issue open and unresolved, in this way committers will see that the issue requires some action from them.
Thanks,

Jacopo

> IE7 javascript submit button compatibility
> ------------------------------------------
>
>                 Key: OFBIZ-978
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: IE7
>            Reporter: Kane Lo
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.diff, selectall.js.v1.diff
>
>
> Environment: IE7.
> The scenario is like this.
> I want to create a new security group. I enter Security Group ID as
> "TestSubmit" and Descirption as "TestSubmit" then press Update button. The
> result is I create a "TestSubmit" Security Group ID and a error message:
> The Following Errors Occurred:
> ERROR: Could not complete the Create an SecurityGroup
> [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
> process [problem creating the newEntity value: Exception while inserting the
> following entity: [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (while inserting:
> [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
> message from server: "Duplicate entry 'TestSubmit4' for key 1")))]
> The problem is in IE7 only. I only got IE7 and Firefox. After I do some
> research, I found the problem is IE7 will do submit twice, one from submit
> buttom and another one from function submitFormDisableButton(button).
> In the research I comment out line 205: button.form.submit() in
> selectall.js. And do the submit in IE7 again, in theory I should not create
> any security group, however the system do create a security group for me.
> Therefore I think we should add a browser checking before the line 205.
> I have attached a patch, just for the IE7 only. At least my one is okay now.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-978) IE7 javascript submit button compatibility

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray closed OFBIZ-978.
----------------------------

    Resolution: Fixed

This is fixed in rev. 558253

Thanks for reporting Kane, and sorry that it took so long to see some action on it

> IE7 javascript submit button compatibility
> ------------------------------------------
>
>                 Key: OFBIZ-978
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-978
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: IE7
>            Reporter: Kane Lo
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.diff, selectall.js.v1.diff
>
>
> Environment: IE7.
> The scenario is like this.
> I want to create a new security group. I enter Security Group ID as
> "TestSubmit" and Descirption as "TestSubmit" then press Update button. The
> result is I create a "TestSubmit" Security Group ID and a error message:
> The Following Errors Occurred:
> ERROR: Could not complete the Create an SecurityGroup
> [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup]
> process [problem creating the newEntity value: Exception while inserting the
> following entity: [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (while inserting:
> [GenericEntity:SecurityGroup][createdStamp,
> 12:14:10.937(java.sql.Timestamp)][createdTxStamp,
> 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,
> 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,
> 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation
> message from server: "Duplicate entry 'TestSubmit4' for key 1")))]
> The problem is in IE7 only. I only got IE7 and Firefox. After I do some
> research, I found the problem is IE7 will do submit twice, one from submit
> buttom and another one from function submitFormDisableButton(button).
> In the research I comment out line 205: button.form.submit() in
> selectall.js. And do the submit in IE7 again, in theory I should not create
> any security group, however the system do create a security group for me.
> Therefore I think we should add a browser checking before the line 205.
> I have attached a patch, just for the IE7 only. At least my one is okay now.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.