Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1786

Fix OSGi description providers for the improved validation in jboss-as-subsystem-test

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.1.0.Beta1
    • Component/s: OSGi
    • Labels:
      None

      Description

      I am adding some more validation of the model. This will be committed to upstream in the next few days. To make the security tests pass I had to override AdditionalInitialization.getModelValidationConfiguration() as follows:

                  @Override
                  protected ValidationConfiguration getModelValidationConfiguration() {
                      return null;
                  }
      

      Returning null basically turns off validation of the providers. These are the errors that happen (this might change a bit before I commit the final version of the validation stuff):

      VALIDATION ERRORS IN MODEL:
      Invalid key 'attributes' found for child type 'configuration' @[("subsystem" => "osgi")]
      No value-type for type=OBJECT {"description" => "The configuration data associated with the PID.","type" => OBJECT,"required" => true,"acces
      s-type" => "read-only","storage" => "configuration"} for attribute 'entries'[
          ("subsystem" => "osgi"),
          ("configuration" => "*")
      ]
      No value-type for type=OBJECT {"description" => "The configuration data associated with the PID.","type" => OBJECT,"required" => true} for o
      peration parameter 'add.entries' @[
          ("subsystem" => "osgi"),
          ("configuration" => "*")
      ]
      Invalid key 'attributes' found for child type 'property' @[("subsystem" => "osgi")]
      Invalid key 'attributes' found for child type 'module' @[("subsystem" => "osgi")]
      

      The work in progress lives at https://github.com/kabir/jboss-as/tree/subsystem-test-model-fixes

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bosschaert David Bosschaert
                  Reporter:
                  kabirkhan Kabir Khan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: