Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1331

VDBMetaDataInstanceClassFactory is using old value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 7.1.1
    • 7.1
    • Legacy Jopr Plugin
    • None
    • Hide

      I wrote a simple Java class that lookups the ProfileService and tried to change the anyAuthenticated value from a Data Role in one VDB.

      Show
      I wrote a simple Java class that lookups the ProfileService and tried to change the anyAuthenticated value from a Data Role in one VDB.

      When updating ManagementComponent values via ProfileService, VDBMetaDataInstanceClassFactory class is using ManagedProperty.getValue to retrieve the updated value instead of MetaValue value received parameter. The value returned by ManagedProperty.getValue is the actual one, not the new value that was submitted.

      Basically should use:

      MetaValueFactory.getInstance().unwrap(value);

      Instead of:

      MetaValueFactory.getInstance().unwrap(property.getValue());

      In all properties manipulated by the setValue method.

              rhn-engineering-rareddy Ramesh Reddy
              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: