Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Tweak generation of ToolsUI JNLP files so they work on our web server #811

Merged
merged 1 commit into from
Apr 19, 2017

Conversation

cwardgar
Copy link
Contributor

ui.jar's 'Codebase' manifest attribute and the /jnlp/@codebase attributes of ToolsUI JNLP files are now kept in sync. They are controlled by a single variable in :ui: webstartCodebase. It turns out that different values for all of these codebases was the principal cause of the "Application Blocked by Java Security" failures we were seeing in javaws.

  • The ToolsUiJnlp tasks now have a codebase property. Updated unit tests to exercise the new property.
  • The aforementioned property may be null, which suppresses output of the /jnlp/@codebase attribute. This is useful for local Web Start testing.
  • Restored my (now simpler) notes about how to test Web Start locally.

Other changes:

  • Don't include /jnlp/@href attribute in ToolsUiJnlp*Task output files.
  • ToolsUiJnlpExtensionTask outputs must include <security><all-permissions/></security> element.
  • Refactored ToolsUiJnlp*Task tests to be simpler and more consistent.
  • For all URLs in our JAR manifests and JNLP files that point to our web sever, use HTTPS instead of HTTP.

ui.jar's 'Codebase' manifest attribute and the /jnlp/@codebase attributes of ToolsUI JNLP files are now kept in sync. They are controlled by a single variable in ':ui': webstartCodebase. It turns out that different values for all of these codebases was the principal cause of the "Application Blocked by Java Security" failures we were seeing in javaws.
* The ToolsUiJnlp tasks now have a codebase property. Updated unit tests to exercise the new property.
* The aforementioned property may be 'null', which suppresses output of the /jnlp/@codebase attribute. This is useful for local Web Start testing.
* Restored my (now simpler) notes about how to test Web Start locally.

Other changes:
* Don't include /jnlp/@href attribute in ToolsUiJnlp*Task output files.
* ToolsUiJnlpExtensionTask outputs must include '<security><all-permissions/></security>' element.
* Refactored ToolsUiJnlp*Task tests to be simpler and more consistent.
* For all URLs in our JAR manifests and JNLP files that point to our websever, use HTTPS instead of HTTP.
@cwardgar
Copy link
Contributor Author

I prepared the 4.6.10 Web Start release using this code and verified that it works. You can too. So, I'm gonna go ahead and merge this in myself, as it's blocking me from doing the rest of the 4.6.10 release. Plus, it's all Gradle and JNLP stuff anyway, which is hard for others to review.

@cwardgar cwardgar merged commit 5303873 into Unidata:master Apr 19, 2017
@cwardgar cwardgar deleted the more-jnlp branch April 19, 2017 22:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant