Opened 4 years ago

Last modified 3 years ago

#6085 new defect

Problem with licensed models

Reported by: Niklas Worschech Owned by: Adeel Asghar
Priority: blocker Milestone: 1.19.0
Component: OMEncryption Version:
Keywords: Modelica licensing Cc:

Description (last modified by Niklas Worschech)

If you open a licensed library with OMEdit, you can also read subpackages for a licensed feature for which you are not authorized.

For the following example, you can also open the SubLibrary subpackage, even if you only have access to the feature test_licensed_feature.


package LicenseOptionTest "License Features"
  model Component1
    extends LicenseOptionTest.Internal.InternalComponent1;
    Real a = 1;
    
  end Component1;

  model Component2
    extends LicenseOptionTest.Internal.InternalComponent2;
    Real b = 1;
  end Component2;

  package Internal
    model InternalComponent1
      Real internalA = 1;
    end InternalComponent1;

    model InternalComponent2
      Real internalB = 2;
    
    end InternalComponent2;
      
  end Internal;

  package SubLibrary
    model SubComponent1
    
    end SubComponent1;
    annotation (
      Protection(
        access = Access.nonPackageDuplicate,
        features={"test_licensed_feature2"},
        ));
  end SubLibrary;
  annotation (
      Protection(
        access = Access.nonPackageDuplicate,
        features={"test_licensed_feature"},
        ));

end LicenseOptionTest;



Change History (6)

comment:1 by Niklas Worschech, 4 years ago

Description: modified (diff)

comment:2 by Francesco Casella, 4 years ago

Milestone: Future1.17.0
Priority: highblocker

comment:3 by Niklas Worschech, 4 years ago

Description: modified (diff)

comment:4 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Rescheduled to 1.18.0

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:6 by Francesco Casella, 3 years ago

Milestone: 1.19.0

1.18.0 blocker tickets moved to 1.19.0

Note: See TracTickets for help on using tickets.