Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2731

provide hook to enforce fqn's leaking out from shared resources

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.6
    • 1.4.7
    • wicket
    • None

    Description

      Enforcing a requirement of not leaking out FQN's from the webapplication is currently not possible. It is possible to mount resources; however it is easy to forget one.

      SharedResources.resourceKey() gets the class's fully quantified name when it has not been mapped.

      potential fixes:
      (1) depending on a boolean flag throw a RuntimeException when the resource has not been mapped -> setEnforcedResourceMappings(true)
      (2) provide a hook such that at runtime the mapping can be determined, for instance by encrypting the fqn -> instead of calling scope.getName() call an extendable method
      (3) somehow allow to override the SharedResources.resourceKey method

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            zwiep Antoine van Wel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: