Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336882

Summary: Steretype values are encoded incorrectly
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: CoreAssignee: Project Inbox <tigerstripe.core-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
336882 patch none

Description Navid Mehregani CLA 2011-02-10 17:54:22 EST
Build Identifier: 

Stereotype values seem to get encoded based on XML encoding

Reproducible: Always

Steps to Reproduce:
1. Create a new profile 
  1a. Create a stereotype in the profile that accepts a string attribute
2. Activate the profile
3. Create a new Managed Entity
4. Add the newly created stereotype and add the following for its value:
   a1 + a2 & > < " ' testing...
5. Save the Entity 
6. Select the stereotype and click on Edit, notice the value has changed to the following:
  a1 + a2 &amp;amp; > < &amp;quot; &amp;apos; testing...

Stereotype values shouldn't get encoded.  Retrieving the value in generators shouldn't encode the value either.
Comment 1 Anton Salnik CLA 2011-03-09 08:49:27 EST
Created attachment 190753 [details]
336882 patch
Comment 2 Yuri Strot CLA 2011-03-14 06:58:22 EDT
Anton's patch applied.
Comment 3 Navid Mehregani CLA 2011-03-17 12:21:15 EDT
Verified. Thanks!