[tomcat-training] 01/01: first commit

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 7067831c2d3a689cdc6b016c466a73aea274bfb5
Author: Mark Thomas 
AuthorDate: Fri Feb 16 09:47:07 2018 +

first commit
---
 README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.md b/README.md
new file mode 100644
index 000..3c6c97a
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# tomcat-training

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] branch master created (now 7067831)

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git.


  at 7067831  first commit

This branch includes the following new commits:

 new 7067831  first commit

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] branch master updated (7067831 -> 6e20afd)

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git.


from 7067831  first commit
 new 521e48d  Add basic L&N
 new 6e20afd  Add a basic description.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 LICENSE   | 203 ++
 NOTICE|   6 ++
 README.md |   4 +-
 3 files changed, 212 insertions(+), 1 deletion(-)
 create mode 100644 LICENSE
 create mode 100644 NOTICE

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



dev@tomcat.apache.org

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 521e48dd8de0bdff02ff2d6dd14525643b11323e
Author: Mark Thomas 
AuthorDate: Fri Feb 16 11:34:32 2018 +

Add basic L&N
---
 LICENSE | 203 
 NOTICE  |   6 ++
 2 files changed, 209 insertions(+)

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000..6b0b127
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,203 @@
+
+ Apache License
+   Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+  "License" shall mean the terms and conditions for use, reproduction,
+  and distribution as defined by Sections 1 through 9 of this document.
+
+  "Licensor" shall mean the copyright owner or entity authorized by
+  the copyright owner that is granting the License.
+
+  "Legal Entity" shall mean the union of the acting entity and all
+  other entities that control, are controlled by, or are under common
+  control with that entity. For the purposes of this definition,
+  "control" means (i) the power, direct or indirect, to cause the
+  direction or management of such entity, whether by contract or
+  otherwise, or (ii) ownership of fifty percent (50%) or more of the
+  outstanding shares, or (iii) beneficial ownership of such entity.
+
+  "You" (or "Your") shall mean an individual or Legal Entity
+  exercising permissions granted by this License.
+
+  "Source" form shall mean the preferred form for making modifications,
+  including but not limited to software source code, documentation
+  source, and configuration files.
+
+  "Object" form shall mean any form resulting from mechanical
+  transformation or translation of a Source form, including but
+  not limited to compiled object code, generated documentation,
+  and conversions to other media types.
+
+  "Work" shall mean the work of authorship, whether in Source or
+  Object form, made available under the License, as indicated by a
+  copyright notice that is included in or attached to the work
+  (an example is provided in the Appendix below).
+
+  "Derivative Works" shall mean any work, whether in Source or Object
+  form, that is based on (or derived from) the Work and for which the
+  editorial revisions, annotations, elaborations, or other modifications
+  represent, as a whole, an original work of authorship. For the purposes
+  of this License, Derivative Works shall not include works that remain
+  separable from, or merely link (or bind by name) to the interfaces of,
+  the Work and Derivative Works thereof.
+
+  "Contribution" shall mean any work of authorship, including
+  the original version of the Work and any modifications or additions
+  to that Work or Derivative Works thereof, that is intentionally
+  submitted to Licensor for inclusion in the Work by the copyright owner
+  or by an individual or Legal Entity authorized to submit on behalf of
+  the copyright owner. For the purposes of this definition, "submitted"
+  means any form of electronic, verbal, or written communication sent
+  to the Licensor or its representatives, including but not limited to
+  communication on electronic mailing lists, source code control systems,
+  and issue tracking systems that are managed by, or on behalf of, the
+  Licensor for the purpose of discussing and improving the Work, but
+  excluding communication that is conspicuously marked or otherwise
+  designated in writing by the copyright owner as "Not a Contribution."
+
+  "Contributor" shall mean Licensor and any individual or Legal Entity
+  on behalf of whom a Contribution has been received by Licensor and
+  subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+  this License, each Contributor hereby grants to You a perpetual,
+  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+  copyright license to reproduce, prepare Derivative Works of,
+  publicly display, publicly perform, sublicense, and distribute the
+  Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+  this License, each Contributor hereby grants to You a perpetual,
+  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+  (except as stated in this section) patent license to make, have made,
+  use, offer to sell, sell, import, and otherwise transfer the Work,
+  where such license applies only to those patent claims licensable

[tomcat-training] 02/02: Add a basic description.

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 6e20afd5197d00c93c900778ee8445e09fe55831
Author: Mark Thomas 
AuthorDate: Fri Feb 16 11:35:00 2018 +

Add a basic description.
---
 README.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 3c6c97a..4e48110 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,3 @@
-# tomcat-training
+# Tomcat Training Material
+
+This repository hosts the community developed Apache Tomcat training material.

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 62048] Missing logout function in Manager and Host-Manager webapps

2018-02-16 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62048

--- Comment #10 from Marek Czernek  ---

So I have dug a little bit deeper into this topic and I don't seem to have
found a silver bullet for all browsers... 

In Chrome, the original solution (in my PR) works.

In Firefox, the original solution (in my PR) does not work, but sending a GET
"badCredentials@{server}:{port}/manager/html" prompts for user's credentials
since login with incorrect credentials was attempted. This, however, does not
work with Chrome, nor does it work with IE.

In IE, the only consistent way to log out was using IE-specific command:
document.execCommand("ClearAuthenticationCache")

My suggestion: I'll implement the logout function for Chrome, Firefox, and IE,
while issuing a warning for any other browser that the logout functionality may
not work. What do you think, Mark? Is a functioning solution for IE, Chrome,
and FF acceptable? Not sure about OS X and Safari; for that, I'll have to
experiment a bit later. Also, aren't mobile browsers out of the question? I'm
no expert of course, but I wonder how many people use mobile devices to deploy
apps and manage their virtual host settings on Tomcat...  This PR is starting
to have a lot of caveats I'm afraid :/.

Also, it's noteworthy to say that since the logout implementation depends on
browser developers, and that only IE has implemented it (while the rest depends
on workarounds), it is possible that with new browser versions, this would stop
working (for example, in the past, Chrome allowed the
"badCredentials@{server}:{port}" way of login but does not any more).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] 03/07: Add directories for courses and modules and update Grunt config to watch those directories

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 6f9efb9cf37c9e3e3721d2a4eaf0ee9c981837cf
Author: Mark Thomas 
AuthorDate: Fri Feb 16 12:28:47 2018 +

Add directories for courses and modules and update Grunt config to watch 
those directories
---
 Gruntfile.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Gruntfile.js b/Gruntfile.js
index b6ef63b..994bd42 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -136,7 +136,7 @@ module.exports = function(grunt) {
tasks: 'css-core'
},
html: {
-   files: root.map(path => path + '/*.html')
+   files: [ '*.html', 'courses/*.html', 
'modules/*.html' ]
},
markdown: {
files: root.map(path => path + '/*.md')

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] branch master updated (6e20afd -> dbd857a)

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git.


from 6e20afd  Add a basic description.
 new 7e995c4  Add reveal.js 3.6.0
 new 4ca32a1  Ignore files installed to run local server
 new 6f9efb9  Add directories for courses and modules and update Grunt 
config to watch those directories
 new 3f2b516  Add reveal_external
 new 11438e2  Add skelton for modules planned for first course
 new 83c4b59  Add first course
 new dbd857a  Replace contents of default index page with links to the 
available courses

The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .gitignore |1 +
 Gruntfile.js   |  192 +
 LICENSE|   46 +
 bower.json |   27 +
 courses/tomcat-for-administrators.html |   73 +
 css/print/paper.css|  203 +
 css/print/pdf.css  |  178 +
 css/reveal.css | 1555 ++
 css/reveal.scss| 1717 +++
 css/theme/README.md|   21 +
 css/theme/beige.css|  268 +
 css/theme/black.css|  264 +
 css/theme/blood.css|  287 ++
 css/theme/league.css   |  270 +
 css/theme/moon.css |  268 +
 css/theme/night.css|  262 +
 css/theme/serif.css|  264 +
 css/theme/simple.css   |  267 +
 css/theme/sky.css  |  271 +
 css/theme/solarized.css|  268 +
 css/theme/source/beige.scss|   39 +
 css/theme/source/black.scss|   49 +
 css/theme/source/blood.scss|   78 +
 css/theme/source/league.scss   |   34 +
 css/theme/source/moon.scss |   57 +
 css/theme/source/night.scss|   34 +
 css/theme/source/serif.scss|   35 +
 css/theme/source/simple.scss   |   43 +
 css/theme/source/sky.scss  |   46 +
 css/theme/source/solarized.scss|   63 +
 css/theme/source/white.scss|   49 +
 css/theme/template/mixins.scss |   29 +
 css/theme/template/settings.scss   |   43 +
 css/theme/template/theme.scss  |  316 ++
 css/theme/white.css|  264 +
 index.html |   69 +
 js/reveal.js   | 5239 
 lib/css/zenburn.css|   80 +
 lib/font/league-gothic/LICENSE |2 +
 lib/font/league-gothic/league-gothic.css   |   10 +
 lib/font/league-gothic/league-gothic.eot   |  Bin 0 -> 25696 bytes
 lib/font/league-gothic/league-gothic.ttf   |  Bin 0 -> 64256 bytes
 lib/font/league-gothic/league-gothic.woff  |  Bin 0 -> 30764 bytes
 lib/font/source-sans-pro/LICENSE   |   45 +
 .../source-sans-pro/source-sans-pro-italic.eot |  Bin 0 -> 75720 bytes
 .../source-sans-pro/source-sans-pro-italic.ttf |  Bin 0 -> 238084 bytes
 .../source-sans-pro/source-sans-pro-italic.woff|  Bin 0 -> 98556 bytes
 .../source-sans-pro/source-sans-pro-regular.eot|  Bin 0 -> 88070 bytes
 .../source-sans-pro/source-sans-pro-regular.ttf|  Bin 0 -> 288008 bytes
 .../source-sans-pro/source-sans-pro-regular.woff   |  Bin 0 -> 114324 bytes
 .../source-sans-pro/source-sans-pro-semibold.eot   |  Bin 0 -> 89897 bytes
 .../source-sans-pro/source-sans-pro-semibold.ttf   |  Bin 0 -> 284640 bytes
 .../source-sans-pro/source-sans-pro-semibold.woff  |  Bin 0 -> 115648 bytes
 .../source-sans-pro-semibolditalic.eot |  Bin 0 -> 75706 bytes
 .../source-sans-pro-semibolditalic.ttf |  Bin 0 -> 240944 bytes
 .../source-sans-pro-semibolditalic.woff|  Bin 0 -> 98816 bytes
 lib/font/source-sans-pro/source-sans-pro.css   |   39 +
 lib/js/classList.js|2 +
 lib/js/head.min.js |9 +
 lib/js/html5shiv.js|7 +
 modules/background-01.html |   20 +
 modules/deployment-01.html |   20 +
 modules/intro.html   

[tomcat-training] 05/07: Add skelton for modules planned for first course

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 11438e25f8c92045fb12024b6757b8b61f3e9fe1
Author: Mark Thomas 
AuthorDate: Fri Feb 16 14:05:54 2018 +

Add skelton for modules planned for first course
---
 modules/background-01.html  | 20 
 modules/deployment-01.html  | 20 
 modules/intro.html  | 19 +++
 modules/logging-01.html | 20 
 modules/performance-01.html | 20 
 modules/tls-01.html | 20 
 modules/tls-03.html | 20 
 modules/wrap-up.html| 19 +++
 8 files changed, 158 insertions(+)

diff --git a/modules/background-01.html b/modules/background-01.html
new file mode 100644
index 000..adad088
--- /dev/null
+++ b/modules/background-01.html
@@ -0,0 +1,20 @@
+
+Background 01
+Slide 1
+Slide 2
+
diff --git a/modules/deployment-01.html b/modules/deployment-01.html
new file mode 100644
index 000..c592516
--- /dev/null
+++ b/modules/deployment-01.html
@@ -0,0 +1,20 @@
+
+Deployment 01
+Slide 1
+Slide 2
+
diff --git a/modules/intro.html b/modules/intro.html
new file mode 100644
index 000..b9d1faf
--- /dev/null
+++ b/modules/intro.html
@@ -0,0 +1,19 @@
+
+Introduction
+Slide 1
+Slide 2
diff --git a/modules/logging-01.html b/modules/logging-01.html
new file mode 100644
index 000..2123443
--- /dev/null
+++ b/modules/logging-01.html
@@ -0,0 +1,20 @@
+
+Logging 01
+Slide 1
+Slide 2
+
diff --git a/modules/performance-01.html b/modules/performance-01.html
new file mode 100644
index 000..82f8eef
--- /dev/null
+++ b/modules/performance-01.html
@@ -0,0 +1,20 @@
+
+Perfomance 01
+Slide 1
+Slide 2
+
diff --git a/modules/tls-01.html b/modules/tls-01.html
new file mode 100644
index 000..996c7ab
--- /dev/null
+++ b/modules/tls-01.html
@@ -0,0 +1,20 @@
+
+TLS 01
+Slide 1
+Slide 2
+
diff --git a/modules/tls-03.html b/modules/tls-03.html
new file mode 100644
index 000..add3917
--- /dev/null
+++ b/modules/tls-03.html
@@ -0,0 +1,20 @@
+
+TLS 03
+Slide 1
+Slide 2
+
diff --git a/modules/wrap-up.html b/modules/wrap-up.html
new file mode 100644
index 000..f6d53b3
--- /dev/null
+++ b/modules/wrap-up.html
@@ -0,0 +1,19 @@
+
+Wrap up
+Slide 1
+Slide 2

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] 04/07: Add reveal_external

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 3f2b516d8f346f91cf8d5799a2ae92ecff271cf9
Author: Mark Thomas 
AuthorDate: Fri Feb 16 12:43:28 2018 +

Add reveal_external
---
 LICENSE |  23 ++
 plugin/external/external.js | 193 
 2 files changed, 216 insertions(+)

diff --git a/LICENSE b/LICENSE
index cb62e7c..a6cfd56 100644
--- a/LICENSE
+++ b/LICENSE
@@ -224,3 +224,26 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 
OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 
+
+This product bundles reveal_external which is available under the following 
License:
+
+Copyright (c) 2017 Jan Schoepke
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/plugin/external/external.js b/plugin/external/external.js
new file mode 100644
index 000..5e801e0
--- /dev/null
+++ b/plugin/external/external.js
@@ -0,0 +1,193 @@
+/*
+ * external.js
+ * Jan Schoepke 
+ * Released under the MIT license
+ * Load external files into a reveal.js presentation.
+ *
+ * This is a reveal.js plugin to load external html files. It replaces the
+ * content of any element with a data-external="file.ext#selector" with the 
contents
+ * part of file.ext specified by the selector. If you use
+ * data-external-replace="file.ext#selector" the container element itself will 
get
+ * replaced.
+ *
+ * Relative paths in "src" attributes in the loaded fragments will get prefixed
+ * with the path.
+ *
+ * external: {
+ *   async: false,
+ *   mapAttributes: ['src']
+ * }
+ *
+ * This started life as markdown.js. Thank you to whomever wrote it.
+ * This version is based on external.js by Cal Evans. Thanks Cal!
+ * Thanks to Thomas Weinert (https://github.com/ThomasWeinert) for massive 
improvements in version 1.3!
+ */
+(function() {
+   "use strict";
+
+   var config = Reveal.getConfig() || {}, options;
+   config.external = config.external || {};
+   options = {
+   /*
+ Some plugins run into problems, because they expect to have 
access
+ to the all of the slides. Enable on your own risk.
+*/
+   async: !!config.external.async,
+   /*
+ This will prefix the attributes (by default "src") in the 
loaded
+ HTML with the path if they are relative paths (start with a 
dot).
+*/
+   mapAttributes: config.external.mapAttributes instanceof Array
+   ? config.external.mapAttributes
+   : ( config.external.mapAttributes ? [ 'src' ] : [] )
+   };
+
+   var getTarget = function( node ) {
+   var url, isReplace;
+   url = node.getAttribute( 'data-external' ) || '';
+   isReplace = false;
+   if ( url === '' ) {
+   url = node.getAttribute( 'data-external-replace' ) || 
'';
+   isReplace = true;
+   }
+   if ( url.length > 0 ) {
+   var r = url.match( /^([^#]+)(?:#(.+))?/ );
+   return {
+   url: r[1] || "",
+   fragment: r[2] || "",
+   isReplace: isReplace
+   };
+   }
+   return null;
+   };
+
+   var convertUrl = function( src, path ) {
+   if ( path !== '' && src.indexOf( '.' ) === 0 ) {
+   return path + '/' + src;
+   }
+   return src;
+   };
+
+   var convertAttributes = function( attributeName, container, path ) {
+   var nodes = container.querySelectorAll( '[' + attributeName + 
']' );
+   if ( container.getAttribu

[tomcat-training] 06/07: Add first course

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 83c4b59edd9a5534b00b9531020cf18939487af3
Author: Mark Thomas 
AuthorDate: Fri Feb 16 14:12:10 2018 +

Add first course
---
 courses/tomcat-for-administrators.html | 73 ++
 1 file changed, 73 insertions(+)

diff --git a/courses/tomcat-for-administrators.html 
b/courses/tomcat-for-administrators.html
new file mode 100644
index 000..1551e00
--- /dev/null
+++ b/courses/tomcat-for-administrators.html
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+reveal.js
+
+
+
+
+
+
+
+
+
+var link = document.createElement( 'link' );
+link.rel = 'stylesheet';
+link.type = 'text/css';
+link.href = window.location.search.match( /print-pdf/gi ) ? 
'../css/print/pdf.css' : '../css/print/paper.css';
+document.getElementsByTagName( 'head' )[0].appendChild( link );
+
+
+
+
+
+ 

+ 
+ 
+ 

+ 

+ 

+ 
+ 

+
+
+
+
+
+
+
+// More info about config & dependencies:
+// - https://github.com/hakimel/reveal.js#configuration
+// - https://github.com/hakimel/reveal.js#dependencies
+Reveal.initialize(
+{
+dependencies: [
+{ src: '../plugin/markdown/marked.js' },
+{ src: '../plugin/markdown/markdown.js' },
+{ src: '../plugin/notes/notes.js', async: true },
+{ src: '../plugin/highlight/highlight.js', async: true, 
callback: function() { hljs.initHighlightingOnLoad(); } },
+{ src: 
'../plugin/external/external.js', condition: function() { return 
!!document.querySelector( '[data-external],[data-external-replace]' ); } }
+]
+});
+
+
+

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] 07/07: Replace contents of default index page with links to the available courses

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit dbd857ad02417ea52904209d913d4f31a14fa496
Author: Mark Thomas 
AuthorDate: Fri Feb 16 14:21:00 2018 +

Replace contents of default index page with links to the available courses
---
 index.html | 112 -
 1 file changed, 66 insertions(+), 46 deletions(-)

diff --git a/index.html b/index.html
index 98accc3..3d2c45b 100644
--- a/index.html
+++ b/index.html
@@ -1,49 +1,69 @@
+
 
 
-   
-   
-   
-
-   reveal.js
-
-   
-   
-
-   
-   
-
-   
-   
-   var link = document.createElement( 'link' );
-   link.rel = 'stylesheet';
-   link.type = 'text/css';
-   link.href = window.location.search.match( /print-pdf/gi 
) ? 'css/print/pdf.css' : 'css/print/paper.css';
-   document.getElementsByTagName( 'head' )[0].appendChild( 
link );
-   
-   
-   
-   
-   
-   Slide 1
-   Slide 2
-   
-   
-
-   
-   
-
-   
-   // More info about config & dependencies:
-   // - https://github.com/hakimel/reveal.js#configuration
-   // - https://github.com/hakimel/reveal.js#dependencies
-   Reveal.initialize({
-   dependencies: [
-   { src: 'plugin/markdown/marked.js' },
-   { src: 'plugin/markdown/markdown.js' },
-   { src: 'plugin/notes/notes.js', async: 
true },
-   { src: 'plugin/highlight/highlight.js', 
async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
-   ]
-   });
-   
-   
+
+
+
+
+Tomcat Training
+
+
+
+
+
+
+
+
+
+var link = document.createElement( 'link' );
+link.rel = 'stylesheet';
+link.type = 'text/css';
+link.href = window.location.search.match( /print-pdf/gi ) ? 
'css/print/pdf.css' : 'css/print/paper.css';
+document.getElementsByTagName( 'head' )[0].appendChild( link );
+
+
+
+
+
+
+Tomcat training
+
+
+The following training courses are currently 
available
+
+Tomcat for Administrators
+
+
+
+
+
+
+
+
+
+Reveal.initialize({
+dependencies: [
+{ src: 'plugin/markdown/marked.js' },
+{ src: 'plugin/markdown/markdown.js' },
+{ src: 'plugin/notes/notes.js', async: true },
+{ src: 'plugin/highlight/highlight.js', async: true, 
callback: function() { hljs.initHighlightingOnLoad(); } }
+]
+});
+
+
 

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] 02/07: Ignore files installed to run local server

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git

commit 4ca32a10e8f2f7ddc2fd03ecb09aff214b0b8026
Author: Mark Thomas 
AuthorDate: Fri Feb 16 12:13:35 2018 +

Ignore files installed to run local server
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Git repo for training content

2018-02-16 Thread Mark Thomas
On 15/02/18 16:09, Rémy Maucherat wrote:
> On Thu, Feb 15, 2018 at 4:57 PM, Mark Thomas  wrote:
> 
>> Hi,
>>
>> Now the date and venue are fixed for the training course (I need to
>> publish them) we need somewhere to put the training material.
>>
>> After some research my plan is to use reveal.js and GitHub pages. This
>> means we'll need a GitHib repo. I therefore plan to request an ASF GitHub
>> repo - "tomcat-training" to host this content. I'll probably do this
>> tomorrow unless there are any concerns or objections.
>>
> 
> +1

As you will have seen, I've created the repo and started to populate it.
I am VERY impressed with reveal.js so far.

My plan over the coming weeks includes:
- tweaking the default template to add some Tomcat branding
- fill out the content
- once we have some reasonable content publish it via github pages
- link to the training material from the website
- promote it on the users list along with a call for contributions

Obviously, there is a hard deadline 10 April to complete the first
course as that is when I have booked the venue for.

Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] branch master updated: Switch to the white there Add the Tomcat logo as a background image to all slides Minor clean-up

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git


The following commit(s) were added to refs/heads/master by this push:
 new f56cead  Switch to the white there Add the Tomcat logo as a background 
image to all slides Minor clean-up
f56cead is described below

commit f56ceadc53cab8d40a3463e9ad56a4045dfa039e
Author: Mark Thomas 
AuthorDate: Fri Feb 16 20:14:26 2018 +

Switch to the white there
Add the Tomcat logo as a background image to all slides
Minor clean-up
---
 courses/tomcat-for-administrators.html |  42 +-
 images/tomcat.svg  | 967 +
 2 files changed, 1002 insertions(+), 7 deletions(-)

diff --git a/courses/tomcat-for-administrators.html 
b/courses/tomcat-for-administrators.html
index 1551e00..859c268 100644
--- a/courses/tomcat-for-administrators.html
+++ b/courses/tomcat-for-administrators.html
@@ -20,10 +20,10 @@
 
 
 
-reveal.js
+Tomcat for Administrators
 
 
-
+
 
 
 
@@ -36,10 +36,36 @@
 link.href = window.location.search.match( /print-pdf/gi ) ? 
'../css/print/pdf.css' : '../css/print/paper.css';
 document.getElementsByTagName( 'head' )[0].appendChild( link );
 
+
+
+
+
+body {
+position: relative;
+z-index: 1;
+}
+body::before {
+content: "";
+position: absolute;
+top: 0; 
+left: 0;
+width: 100%; 
+height: 100%;  
+opacity: .15; 
+z-index: -1;
+background: url( '../images/tomcat.svg' );
+background-position: center;
+background-size: 100%;
+background-repeat: no-repeat;
+}
+
 
 
 
 
+
+  Tomcat for Administrators
+
  

  
  
@@ -55,17 +81,19 @@
 
 
 
-// More info about config & dependencies:
-// - https://github.com/hakimel/reveal.js#configuration
-// - https://github.com/hakimel/reveal.js#dependencies
 Reveal.initialize(
-{
+{
+// - https://github.com/hakimel/reveal.js#configuration
+
+// - https://github.com/hakimel/reveal.js#dependencies
 dependencies: [
+   // Default dependencies
 { src: '../plugin/markdown/marked.js' },
 { src: '../plugin/markdown/markdown.js' },
 { src: '../plugin/notes/notes.js', async: true },
 { src: '../plugin/highlight/highlight.js', async: true, 
callback: function() { hljs.initHighlightingOnLoad(); } },
-{ src: 
'../plugin/external/external.js', condition: function() { return 
!!document.querySelector( '[data-external],[data-external-replace]' ); } }
+// reveal_external to allow composition from multiple files
+{ src: '../plugin/external/external.js', condition: 
function() { return !!document.querySelector( 
'[data-external],[data-external-replace]' ); } }
 ]
 });
 
diff --git a/images/tomcat.svg b/images/tomcat.svg
new file mode 100644
index 000..8823f79
--- /dev/null
+++ b/images/tomcat.svg
@@ -0,0 +1,967 @@
+
+
+
+http://ns.adobe.com/xap/1.0/g/img/";
+   xmlns:xap="http://ns.adobe.com/xap/1.0/";
+   xmlns:ns0="http://ns.adobe.com/SaveForWeb/1.0/";
+   xmlns:ns="http://ns.adobe.com/Variables/1.0/";
+   xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/";
+   xmlns:x="adobe:ns:meta/"
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   i:viewOrigin="176.7139 486.707"
+   i:rulerOrigin="-156 -296"
+   i:pageBounds="156 496 456 296"
+   width="260.162"
+   height="184.413"
+   viewBox="0 0 260.162 184.413"
+   overflow="visible"
+   enable-background="n

[tomcat-training] branch master updated: Expand ignored files - minimised javascript - IDE files

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git


The following commit(s) were added to refs/heads/master by this push:
 new 235be73  Expand ignored files - minimised javascript - IDE files
235be73 is described below

commit 235be73c2190bbe6dec2276ea7e135035089f7a2
Author: Mark Thomas 
AuthorDate: Fri Feb 16 20:16:50 2018 +

Expand ignored files
- minimised javascript
- IDE files
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitignore b/.gitignore
index 3c3629e..2b195ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 node_modules
+.project
+*.min.js
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
ma...@apache.org.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-training] branch master updated: Add agenda. Start to fill out intro module.

2018-02-16 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-training.git


The following commit(s) were added to refs/heads/master by this push:
 new 483ef61  Add agenda. Start to fill out intro module.
483ef61 is described below

commit 483ef618a36c32e0a9c0dbe324c2f3fe5a5bcdce
Author: Mark Thomas 
AuthorDate: Fri Feb 16 21:15:36 2018 +

Add agenda.
Start to fill out intro module.
---
 courses/tomcat-for-administrators.html | 234 ++---
 modules/intro.html |  10 +-
 2 files changed, 166 insertions(+), 78 deletions(-)

diff --git a/courses/tomcat-for-administrators.html 
b/courses/tomcat-for-administrators.html
index 859c268..e80d0cd 100644
--- a/courses/tomcat-for-administrators.html
+++ b/courses/tomcat-for-administrators.html
@@ -16,86 +16,170 @@
 -->
 
 
-
-
-
+  
+
+
 
-Tomcat for Administrators
+Tomcat for Administrators
 
-
-
+
+
 
-
-
+
+
 
-
-
-var link = document.createElement( 'link' );
-link.rel = 'stylesheet';
-link.type = 'text/css';
-link.href = window.location.search.match( /print-pdf/gi ) ? 
'../css/print/pdf.css' : '../css/print/paper.css';
-document.getElementsByTagName( 'head' )[0].appendChild( link );
-
+
+
+  var link = document.createElement( 'link' );
+  link.rel = 'stylesheet';
+  link.type = 'text/css';
+  link.href = window.location.search.match( /print-pdf/gi ) ? 
'../css/print/pdf.css' : '../css/print/paper.css';
+  document.getElementsByTagName( 'head' )[0].appendChild( link );
+
 
-
-
-
-body {
-position: relative;
-z-index: 1;
-}
-body::before {
-content: "";
-position: absolute;
-top: 0; 
-left: 0;
-width: 100%; 
-height: 100%;  
-opacity: .15; 
-z-index: -1;
-background: url( '../images/tomcat.svg' );
-background-position: center;
-background-size: 100%;
-background-repeat: no-repeat;
-}
-
-
-
-
-
-
-  Tomcat for Administrators
-
- 

- 
- 
- 

- 

- 

- 
- 

-
-
+
+
+  
+  body {
+position: relative;
+z-index: 1;
+  }
+  body::before {
+content: "";
+position: absolute;
+top: 0; 
+left: 0;
+width: 100%; 
+height: 100%;  
+opacity: .15; 
+z-index: -1;
+background: url( '../images/tomcat.svg' );
+background-position: center;
+background-size: 100%;
+background-repeat: no-repeat;
+  }
+
+  
+  
+
+  
+
+  Tomcat for Administrators
+  
+Welcome everyone.
+
+Introduce yourself here. Get the class to do short introductions 
as well. Find out any
+particular topics of interest.
+
+If there are any venue announcements (WiFi access, fire exits 
etc.) do those now.
+  
+
+Introduction
+
+  Agenda - Morning
+  
+
+  
+Time
+Topic
+  
+
+
+  
+09.00
+Introduction
+  
+  
+09.30
+Background
+  
+  
+10.30
+Deployment
+  
+  
+11.30
+Logging
+  
+  
+12.30
+Lunch
+  
+
+  
+  
+Explain modules are not exactly 60 minutes. Breaks will be slotted 
in as required. At
+least one AM and one PM.
+  
+
+
+  Agenda - Afternoon
+  
+
+  
+Time
+Topic
+  
+
+
+  
+12.30
+Lunch
+  
+  
+13.30
+TLS - Background
+  
+  
+14.30
+TLS - OpenSSL
+  
+  
+15.30
+Perfor

Re: [Git migration] How to handle svn:external used by Tomcat Native

2018-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Emmanuel,

On 2/14/18 6:15 AM, Emmanuel Bourg wrote:
> Le 12/02/2018 à 19:43, Christopher Schultz a écrit :
> 
>> Is there also option 3) amend the build process to fetch the
>> source from svn?
> 
> This would be a bit inconvenient for Linux distributions like
> Debian that build Tomcat in offline mode.

I was not so clear. I was thinking "build process to assemble the
source distribution", not necessarily the "compile from source" build
process.

I hope that clears things up, and I think offline builds will still
work as expected. If someone wants to build from a fresh git-checkout,
well then, you have network access and can also fetch the tcnative
Java sources as well.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqHYLUdHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFhxwRAAos5NFrs64KuRg1p4
b/agJfZrkoCODlMNlpFq81WWf1YkDEMpZFw+P2kvZC6d6mb6fk/sCfqXEYNADlMm
PRLyvl6VCmmPalLPdULFUcDv3zDdVN2BHkxmZ6sl0Jmmj7YItpY0ZW7nhahmq7m7
MfgTpHA1jvoSsHX9WsKr+wxiiT5En9R1trt1zEFxa0U98S39XjXuncKcocSiUkGs
EoFJSUdagj9cOJ9YyH0YPySkx5DpgRTnQKYE8oJjPfjKA8dveQQaoHJPaf8rsJVq
TNHmouhW/UfvSI7D0Sw1liJ6V9EUmbEsM/kLvs5DZ27IAb4Cdga/AfrtHuIAyAL+
Xf/jjTP42wINyaOscdIpTHsp/CyzXyJnC1DI27w8R6fMXBt63nhUlgSNO0lrKmiE
cdAfH389341SwbIB/Y73RMa1T5vWA72qBvFi3xqBUMaVWsbIxhryks/XyPKU8fjf
wIkd4x6JFzmeNN13B1v/AK1nNmuNXRToO4XqUpOfBqLESW+jO4ev3DlI76zmNBq9
AVXlQMA7oxEyj0heX1TKIpclEPAx7S6PcVRZHY41zDBzEOHMHY+dN1003ExZo24w
AlifeqV8ptWbJr9My057Pg75nBvNm8pRTj6yPrDxPDAGNYJ9suVhlt35uus7oKIn
vIJY4NK2Y6+E7gNKhvc15ScoABA=
=i1Wf
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: How to proceed on the CSP issue.

2018-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 2/14/18 7:39 AM, Mark Thomas wrote:
> On 14/02/18 11:51, Harrison & Wells wrote:
>> Sorry to disturb you.
> 
> Not at all.
> 
>> I read the Contributing.md 
>>  on
>> your github mirror and even found the beginner issues 
>> 
>>
>> 
.
>> Except there are only three of them, out of which one is already
>> solved, one is a case of XML validation (not a bug, technically)
>> and one can be solved using a filter. 
>>  So I
>> decided I could go with the filter one but man, CSP is complex
>> and I don't think one could just do a general 'default-src'
>> because even that can be pretty tight. So it is a bit unclear. 
>> Thanks for reading. I'd appreciate any help in getting started.
> 
> I agree with you completely regarding the complexity of CSP. I'm
> not convinced that a CSP specific filter is possible.

I guess is just depends upon one's perspective and requirements. For
our CSP, we just said "we need a sane policy like [no scripts from
other domains]" and that applies everywhere. That can be some with a
dead-simply Filter that just regurgitates the same CSP for every request
.

But if you want a Filter that tries to guess what the policy of a
particular page should be, well, then you are indeed going to build a
PHD-worthy Filter.

> Igal's suggestion in comment #6 is probably the way to go. A
> generic HTTP header filter. I'd look at httpd's mod_headers module
> for inspiration for the sort of features a generic HTTP header
> filter should provide.

Or just use the rewrite filter Tomcat already provides, if the
requirements are simple enough.

> I don't think the first iteration needs to completely cover all of
> the mod_headers functionality (adding headers to the response is
> probably enough at this point) but having the eventual
> functionality in mind will ensure that configuration parameters
> (likely filter parameters in this case) are chosen appropriately.

The only other thing I can think of that a CSP filter could provide
would be the "signing" capabilities.

CSP can say "it's okay to run a script as long as the hash of the
script is #foo". That means that the script-hasher and the CSP header
have to agree. So perhaps the Filter could maintain an LRU list of
hashes produced elsewhere (and possible run through the Filter). I
think this is a big rathole that ... probably nobody should bother to
go down.

One can also use a nonce. Technically, the nonce should be one-time
use (it's called a nonce ffs!), but since you have to actually use it
twice for it to be useful, I think it's okay for e.g. a Filter to emit
the same nonce multiple times, for a short period of time.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqHYoEdHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFjK/g/9GOCZ2W7c7R0gE2YV
lE5TN89zuPhOjkDu07yJ1xhIOR2nl7t/cHY3KNIZsXw/r0nPrIbC+/ZbZ1PeaqJR
VVGZe4FDobEYUZH+TaDUtWuiVwHRmxqoAnFJqlPDTF2n5pa5dwjHt65C2C76g4eE
wf2UNxxWUovlnvQCwZ6/gdb2aokkxZDqszU+nxWPhQRcUh5pgP127TWwaPHyJCf+
T6zIqal5jQYFZV9GsW90Xv736jZDgdWM3oKOmra1dl6qjv9Ii/2bTDfVo9r25M0t
wmoayvUBn0zBkk/IP4N254vQJ3Og1bAPKB7m6DO+4P4ElptVn1Tz81/M9Wpeg90z
ITzT7WpX78OC8wkcguWpbKocw9cf6vxT+c+Nq5lBn/hJ5yfQ+f4/JYTIT2V1iOx/
7sU7dywr3CxABxPheZa/aW+scJCKhRBDncL63U1l9RJuR+nC4V8MKpVmBhcslClh
V3AmjW+3MIDSGRFd+1e7X2ve61EQHzRnzUx/66JE7Wv+sIjMc3tiOU63lsj/6HSi
DedbA95GIJC8hYCj+ZP29HevXq+DKBOkKfIxBsy90+unoWa3UTZ61kg53X8h8CLx
poRBX7mXSxZuYAnEcITwvQgvKLcMMGeBFMhIt4qfGtjXMN8RZS18OMXwG5Os/rVK
iF81wnQcC6Ste5e9c9uoaJt6GjY=
=wBml
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 62048] Missing logout function in Manager and Host-Manager webapps

2018-02-16 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62048

--- Comment #11 from Christopher Schultz  ---
(In reply to Mark Thomas from comment #6)
> Safari (desktop and mobile), Firefox (desktop), IE (desktop) do not.

I haven't tried the proposed patch, but my implementation of exactly this
technique using a PHP backend works as expected on ff, chrome, safari, msie,
and edge.

My expected behavior: you click "logout" and the browser immediately requests
your credentials again. Entering them logs you back in. Dismissing the
challenge gives you a 401 response.

I'll have to take a look at this patch in particular to see if something is
missing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org