Microsoft KB Archive/889492

= BUG: Signatures in the InfoPath form template are not valid after you add a new signed section to the form template =

Article ID: 889492

Article Last Modified on 6/19/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Office InfoPath 2003, Service Pack 1 (SP1)

-



SYMPTOMS
Signatures in the Microsoft Office InfoPath 2007 form or in the Microsoft Office InfoPath 2003 form are not valid after you add a new signed section to the form. The new signed section includes digital signatures.



CAUSE
This problem occurs because the Versionupgrade.xsl file that is generated does not preserve white spaces. InfoPath requires that white spaces are preserved so that the data can be verified.



RESOLUTION
Microsoft regularly releases software updates to address specific problems. If Microsoft releases a software update to resolve this problem, this article will be updated with additional information.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Create the test file

 * 1) Start InfoPath. Create a blank form.
 * 2) In the task pane, click Controls, click inside Repeating and Optional, and then click the Repeating section.
 * 3) In the task pane, click Standard, and then add a text box to the Repeating section.
 * 4) Click the Tools menu, and then click Form Options.
 * 5) In InfoPath 2007, click Digital Signatures in the Category list.

In InfoPath 2003, click the Digital Signatures tab.
 * 1) Click Enable digital signatures for specific data in the form, and then click Add.
 * 2) In the Set of Signable Data dialog box, type test1 in the Type a name for the data that can be signed box.
 * 3) In the Set of Signable Data dialog box, click Select XPath in the Fields and groups to be signed box.
 * 4) In the Select a Field or Group dialog box, click group1, and then click OK.

Note You can see that &quot;/my:myFields/my:group1&quot; appears in the Fields and groups to be signed box.
 * 1) In the Set of Signable Data dialog box, click OK.
 * 2) In the Form Options dialog box, click OK.
 * 3) In InfoPath 2007, click Save on the File menu.

In InfoPath 2003, click Save on the File menu, and then click Save in the Microsoft Office InfoPath dialog box.
 * 1) In the Save As dialog box, type signature, and then click Save.
 * 2) Click File, and then click Close.

Add the signature

 * 1) In InfoPath 2007, click Fill Out a Form on the File menu. Under Open a Form, click Signature.

In InfoPath 203, click Fill Out a Form on the File menu. In the Fill Out a Form dialog box, click Open, click Signature.xsn, and then click Open.
 * 1) Type test in the text box, click the Repeating section, click Tools, and then click Digital Signatures.
 * 2) In InfoPath 2007, click Add. In the Select the Data to Sign dialog box, click test1, and then click OK.

In the Digital Signatures dialog box, click Add, click Next, click your certificate, click Next, and then click Finish.
 * 1) In InfoPath 2007, type the name of the user in the box provided. For example, type User1, and then click Sign.

In InfoPath 2003, click I have verified the content before signing, click Sign, and then click Close.
 * 1) In the Digital Signatures dialog box, click Close.
 * 2) Click File, click Save, type signature, click Save.
 * 3) Click File, and then click Close.

Add a new signature

 * 1) In InfoPath 2007, click Design a Form Template on the File menu, and then click Signature.

In InfoPath 2003, click Open in Design Mode on the File menu, click Signature.xsn, and then click Open.
 * 1) Click under the existing Repeating section. In the task pane, click Controls. In Repeating and Optional controls, click the Repeating section.
 * 2) In the task pane, add a text box to the Repeating section under the Standard controls section.

The Repeating section was added in step 2 of this section.
 * 1) Click Tools, and then click Form Options.
 * 2) In InfoPath 2007, click Digital Signatures in the Category list, and then click Add.

In InfoPath 2003, click the Digital Signatures tab, and then click Add.
 * 1) In the Set of Signable Data dialog box, type test2 in the Type a name for the data that can be signed box.
 * 2) In the Set of Signable Data dialog box, click Select XPath in the Fields and groups to be signed box.
 * 3) In the Select a Field or Group dialog box, click group3, and then click OK.

Note You can see that &quot;/my:myFields/my:group3&quot; appears in the Fields and groups to be signed box.
 * 1) In the Set of Signable Data dialog box, click OK.
 * 2) In the Form Options dialog box, click OK.
 * 3) Click File, and then click Save.
 * 4) In the Microsoft Office InfoPath dialog box, click Overwrite
 * 5) Click File, and then click Close.

Test the signatures
In InfoPath 2007, click Fill Out a Form on the File menu, and then click Signature.

In InfoPath 2003, click Fill Out a Form on the File menu, click Signature, and then click Fill Out this Form.

Note There is no signature for the first signed section. Additionally, there are no digital signatures in the Digital Signatures dialog box.

Note There are no digital signatures when you reopen the XSN. Additionally, the digital signatures on any forms that are saved from the original XSN are not valid.

Additional query words: IP2007

Keywords: kbsavefile kbtshoot kbbug KB889492

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.