Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19319

Add URLConstraint

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core, Schema

      Description

      Currently to check that a document field contains a well-formed URL, people are using a xs:pattern restriction (implemented by PatternConstraint) with a huuuuuge unreadable regexp.

      We should instead provide a custom nxs:url constraint that is checked server-side using the URI class. This will make things much more maintainable (and we could have various parameter flags that say for instance http-only, no query parameters, no fragment, etc.).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: