Details
-
Type:
Bug
-
Status: Closed
-
Priority:
TBD
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: HTML Form Entry 2.5
-
Labels:None
-
Complexity:Undetermined
-
Development:
Description
Create a new form in OpenMRS Version: 1.11.0 SNAPSHOT Build dde4ceat at http://uat01.openmrs.org:8080/openmrs
The form shows < and > html codes rather than the actual character like...
<htmlform> <!-- Autogenerated example form (template from 01-Nov-2010 --> <macros> paperFormId = (Fill this in) headerColor =#009d8e fontOnHeaderColor = white </macros> <style> .section { border: 1px solid $headerColor; padding: 2px; text-align: left; margin-bottom: 1em; } .sectionHeader { background-color: $headerColor; color: $fontOnHeaderColor; display: block; padding: 2px; font-weight: bold; } table.baseline-aligned td { vertical-align: baseline; } </style> <span style="float:right">Paper Form ID: $paperFormId</span> <h2>Test 2 (v1)</h2> <section headerLabel="1. Encounter Details"> <table class="baseline-aligned"> <tr> <td>Date:</td> <td><encounterDate default="today"/></td> </tr> <tr> <td>Location:</td> <td><encounterLocation/></td> </tr> <tr> <td>Provider:</td> <td><encounterProvider/></td> </tr> </table> </section> <section headerLabel="2. Demographic Information"> <table class="baseline-aligned"> <tr> <td>Name:</td> <td><lookup class="value" expression="patient.personName"/></td> </tr> <tr> <td>Old Identification Number:</td> <td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('Old Identification Number') ) $patId #end "/></td> </tr> <tr> <td>OpenMRS Identification Number:</td> <td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('OpenMRS Identification Number') ) $patId #end "/></td> </tr> <tr> <td>Gender:</td> <td><lookup class="value" expression="patient.gender"/></td> </tr> <tr> <td>Birthdate:</td> <td> <lookup class="value" complexExpression="#if( \$patient.birthdateEstimated ) ~#end"/> <lookup class="value" expression="patient.birthdate"/> (Age: <lookup class="value" expression="patient.age"/>) </td> </tr> <tr> <td>Birthplace:</td> <td><lookup class="value" expression="personAttributes.get('Birthplace')"/></td> </tr> <tr> <td>Citizenship:</td> <td><lookup class="value" expression="personAttributes.get('Citizenship')"/></td> </tr> <tr> <td>Civil Status:</td> <td><lookup class="value" expression="personAttributes.get('Civil Status').name.name"/></td> </tr> <tr> <td>Health Center:</td> <td><lookup class="value" expression="personAttributes.get('Health Center')"/></td> </tr> <tr> <td>Health District:</td> <td><lookup class="value" expression="personAttributes.get('Health District')"/></td> </tr> <tr> <td>Mother's Name:</td> <td><lookup class="value" expression="personAttributes.get('Mothers Name')"/></td> </tr> <tr> <td>Race:</td> <td><lookup class="value" expression="personAttributes.get('Race')"/></td> </tr> </table> </section> <submit/> <!-- END OF FORM Simple examples to copy-and-paste. Full reference at http://wiki.openmrs.org/x/kg8z SECTION <section headerLabel="\#. Title"> Content </section> NUMERIC OBSERVATION <obs conceptId="id-of-numeric-concept" labelText="Label before"/> DATE OBSERVATION <obs conceptId="id-of-date-concept" labelText="Label before"/> CODED OBSERVATION (as a dropdown) <obs conceptId="id-of-coded-concept" labelText="Label before"/> (as radio buttons) <obs conceptId="id-of-coded-concept" labelText="Label before" style="radio"/> (as an autocomplete) <obs conceptId="id-of-coded-concept" labelText="Label before" style="autocomplete" answerClasses="Diagnosis"/> (as a checkbox for a specific answer) <obs conceptId="id-of-coded-concept" labelText="Label before" answerConceptId="id-of-answer-concept" answerLabel="label for answer"/> (as a dropdown with specific choices) <obs conceptId="id-of-coded-concept" labelText="Label before" answerConceptIds="concept-id-1,concept-id-2,concept-id-3" answerLabels="Label 1,Label 2, Label 3"/> FREE TEXT OBSERVATION (as a normal text field) <obs conceptId="id-of-text-concept" labelText="Label before"/> (as a textarea) <obs conceptId="id-of-text-concept" labelText="Label before" rows="4" cols="80"/> --> </htmlform>
If you try to save the form, you get an error...
Reference is not allowed in prolog.
I don't know if this is a bug in HTML Form entry for Mark Goodrich to look into, or a bug in OpenMRS 1.11 for Kaweesi Joseph to look into, but there apparently is some incompatibility between the two that needs to be addressed before 1.11 is released.
Gliffy Diagrams
Attachments
Issue Links
- is caused by
-
TRUNK-3940 Multiple Stored XSS via Concept Name
-
- Closed
-