Opened 5 years ago
Last modified 4 years ago
#6085 new defect
Problem with licensed models — at Version 1
| 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 )
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 Internal 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;
annotation (
Protection(
access = Access.nonPackageDuplicate,
features={"test_licensed_feature2"},
));
end Internal;
package SubLibrary
model SubComponent1
end SubComponent1;
end SubLibrary;
annotation (
Protection(
access = Access.nonPackageDuplicate,
features={"test_licensed_feature"},
));
end LicenseOptionTest;
Note:
See TracTickets
for help on using tickets.
