Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6889939

RequestAssociation with invalid mime returns true.-IntegrationService

XMLWordPrintable

    • generic
    • generic

      RequestAssociation with invalid mime returns true.

      I am requesting Invalid MIME (Mime syntax is [any char]+/[any char]+). RequestAssociation is returning true.

      I think it should return false here. I understand we are not checking the syntax of mime type.(and expecting user will know this ) But I think it should be nice to check these to make the api more robust.
      Example:
                      IntegrationService is = (IntegrationService)
                              ServiceManager.lookup("javax.jnlp.IntegrationService");
                      String mime = "abc";
                      String [] exts = {".abc"};
                      boolean result = is.requestAssociation(mime,exts);

            rkennke Roman Kennke
            rnairsunw Raghu Nair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: