jersey
  1. jersey
  2. JERSEY-1482

Add a property that will allow me to switch off strict validation checking and gracefully ignore invalid resource classes.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-rc2, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      This applies to the cases when:

      • I have nulls or unannotated classes in getClasses() collection
      • or ambiguous resource path in resources
      • perhaps other validation issues I am not aware of at the moment

      If strict validation is turned off, Jersey should just print the errors as warnings and ignore the erroneous resources (i.e. exclude them from the resource list).

      Demo: application with all kinds of validation issues, configured to not do strict validation - show it is working and the warnings are printed to the log.

        Issue Links

          Activity

          Hide
          Marek Potociar added a comment -

          The property that completely turns off the validation for performance reasons should be added as part of the issue.

          Show
          Marek Potociar added a comment - The property that completely turns off the validation for performance reasons should be added as part of the issue.
          Hide
          Marek Potociar added a comment -

          In the current implementation, when disabling the "fail on validation errors", the resources will not be ignored.

          Show
          Marek Potociar added a comment - In the current implementation, when disabling the "fail on validation errors", the resources will not be ignored.

            People

            • Assignee:
              Marek Potociar
              Reporter:
              Martin Matula
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 6 hours
                6h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours Time Not Required
                4h