grealish / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Updating an Email template for multiple locales loses data upon save #373

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Edit an Email template (i.e User Activation Verification template) by 
changing both the plaintext and HTML body for the locale "en". In the same edit 
add another locale "nl" and fill in al the fields (from address, subject, plain 
text and HTML body)
3. Save the configuration
4. Reopen the Configuration Manager after the application is restarted

What is the expected output? What do you see instead?
I would expect that PWM would have saved both User Activation Verification 
templates (for locale "en" and locale "nl"). However only the template for 
locale "nl" is available after the update. The template for locale "en" is 
gone. See the attached screenshots.

What version of PWM are you using?
Daily build (pwmVersion="1.7.0" pwmBuild="1216" pwmBuildType="RC1" 
createTime="2013-04-04 06:24:31 +0000")

What ldap directory and version are you using?
eDirectory for Linux x86_64 v8.8 SP7 ON SLES11 SP1

Original issue reported on code.google.com by sebastia...@gmail.com on 24 Apr 2013 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
A minor correction on the above: the template with locale "en" is there, but 
gets the values of the locale "nl" template. The locale "nl" template is 
however gone.

Original comment by sebastia...@gmail.com on 24 Apr 2013 at 7:14

GoogleCodeExporter commented 9 years ago
Fixed in revision 548.  It's actually a bug in reading the config, the saving 
worked okay.

Original comment by jrivard on 25 Apr 2013 at 8:03

GoogleCodeExporter commented 9 years ago
Retested this in today build, seems to work OK now. Thanks for fixing :)

Original comment by sebastia...@gmail.com on 26 Apr 2013 at 6:53

GoogleCodeExporter commented 9 years ago
Although the body is now working correctly, I still have issues with the "From" 
field and "Subject" field.

Both are actually stored under the wrong locale (verified this in the 
PwmConfiguration.xml

Original comment by sebastia...@gmail.com on 26 Apr 2013 at 7:58