incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1420577 [22/30] - in /sling/site/trunk/content/site: ./ 46-line-blog.data/ authentication.data/ documentation.data/ first-steps.data/ getting-and-building-sling.data/ how-to-manage-events-in-sling.data/ index.data/ links.data/ manipulating...
Date Wed, 12 Dec 2012 09:14:44 GMT
Added: sling/site/trunk/content/site/release-management.html
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/site/release-management.html?rev=1420577&view=auto
==============================================================================
--- sling/site/trunk/content/site/release-management.html (added)
+++ sling/site/trunk/content/site/release-management.html Wed Dec 12 09:13:50 2012
@@ -0,0 +1,491 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<HTML>
+  <HEAD>
+    <TITLE>Apache Sling - Release Management</TITLE>
+    <LINK rel="stylesheet" href="http://sling.apache.org/site/media.data/site.css" type="text/css" media="all">
+    <LINK rel="icon" href="http://sling.apache.org/site/media.data/favicon.ico">
+    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
+  </HEAD>
+  <BODY>
+    <DIV class="title">
+      <DIV class="logo">
+        <A href="http://sling.apache.org/site/index.html">
+          <IMG border="0" alt="Apache Sling" src="http://sling.apache.org/site/media.data/logo.png">
+        </A>
+      </DIV>
+      <DIV class="header">
+        <A href="http://www.apache.org/">
+          <IMG border="0" alt="Apache" src="http://sling.apache.org/site/media.data/apache.png">
+        </A>
+      </DIV>
+    </DIV>
+    <DIV class="menu">
+<P><B>Documentation</B><BR class="atl-forced-newline">
+<A href="getting-started.html" title="Getting Started">Getting Started</A><BR class="atl-forced-newline">
+<A href="the-sling-engine.html" title="The Sling Engine">The Sling Engine</A><BR class="atl-forced-newline">
+<A href="development.html" title="Development">Development</A><BR class="atl-forced-newline">
+<A href="bundles.html" title="Bundles">Bundles</A><BR class="atl-forced-newline">
+<A href="tutorials-how-tos.html" title="Tutorials & How-Tos">Tutorials &amp; How&#45;Tos</A><BR class="atl-forced-newline">
+<A href="configuration.html" title="Configuration">Configuration</A><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/apidocs/sling6/index.html" class="external-link" rel="nofollow">API docs</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.wiki" class="external-link" rel="nofollow">Wiki</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.faq" class="external-link" rel="nofollow">FAQ</A><BR class="atl-forced-newline"></P>
+
+<P><B>Project info</B><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/site/downloads.cgi" class="external-link" rel="nofollow">Downloads</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/licenses/" class="external-link" rel="nofollow">License</A><BR class="atl-forced-newline">
+<A href="contributing.html" title="Contributing">Contributing</A><BR class="atl-forced-newline">
+<A href="news.html" title="News">News</A><BR class="atl-forced-newline">
+<A href="links.html" title="Links">Links</A><BR class="atl-forced-newline">
+<A href="project-information.html" title="Project Information">Project Information</A><BR class="atl-forced-newline">
+<A href="https://issues.apache.org/jira/browse/SLING" class="external-link" rel="nofollow">Issue Tracker</A><BR class="atl-forced-newline">
+<A href="http://svn.apache.org/viewvc/sling/trunk" class="external-link" rel="nofollow">Browse Source Repository</A><BR class="atl-forced-newline">
+<A href="security.html" title="Security">Security</A><BR class="atl-forced-newline"></P>
+
+<P><B>Sponsorship</B><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/thanks.html" class="external-link" rel="nofollow">Thanks</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/sponsorship.html" class="external-link" rel="nofollow">Become a Sponsor</A><BR>
+<A href="http://www.apache.org/foundation/buy_stuff.html" class="external-link" rel="nofollow">Buy Stuff</A></P>
+
+
+  <IFRAME src="http://www.apache.org/ads/button.html" style="border-width:0; float: left" frameborder="0" scrolling="no" width="135" height="135"></IFRAME>
+  <P style="height: 135px"></P>
+    </DIV>
+    <DIV class="main">
+        <DIV class="breadcrump" style="font-size: 80%;">
+<A href="apache-sling.html" title="Apache Sling Website">Apache Sling Website</A>&nbsp;&gt;&nbsp;<A href="apache-sling.html" title="Apache Sling">Apache Sling</A>&nbsp;&gt;&nbsp;<A href="documentation.html" title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="development.html" title="Development">Development</A>&nbsp;&gt;&nbsp;<A href="" title="Release Management">Release Management</A>
+        </DIV>
+<H1><A name="ReleaseManagement-ReleaseManagement"></A>Release Management</H1>
+
+
+<P>Sling releases (and SNAPSHOTS) are deployed to the <A href="http://repository.apache.org/" class="external-link" rel="nofollow">Nexus repository</A> instead of the traditional deployment via the Maven 2 mirros source on <TT>people.apache.org</TT>. This makes the release process much leaner and simpler. In addtion we can benefit from the Apache Parent POM 6, which has most of the release profile setup built-in.</P>
+
+<P>Most of the hard work of preparing and deploying the release is done by Maven.</P>
+
+<DIV>
+<UL>
+    <LI><A href="#ReleaseManagement-Prerequisites">Prerequisites</A></LI>
+    <LI><A href="#ReleaseManagement-StagingtheReleaseCandidates">Staging the Release Candidates</A></LI>
+    <LI><A href="#ReleaseManagement-StartingtheVote">Starting the Vote</A></LI>
+    <LI><A href="#ReleaseManagement-WaitfortheResults">Wait for the Results</A></LI>
+    <LI><A href="#ReleaseManagement-CancelingtheRelease">Canceling the Release</A></LI>
+    <LI><A href="#ReleaseManagement-PromotingtheRelease">Promoting the Release</A></LI>
+    <LI><A href="#ReleaseManagement-UpdateJIRA">Update JIRA</A></LI>
+    <LI><A href="#ReleaseManagement-CreateanAnnouncement">Create an Announcement</A></LI>
+    <LI><A href="#ReleaseManagement-RelatedLinks">Related Links</A></LI>
+    <LI><A href="#ReleaseManagement-AppendixA%253ACreateandAddyourkeyto">Appendix A: Create and Add your key to http://www.apache.org/dist/sling/KEYS</A></LI>
+    <LI><A href="#ReleaseManagement-AppendixB%253ApreparingreleasesonMacOSX">Appendix B: preparing releases on Mac OS X</A></LI>
+    <LI><A href="#ReleaseManagement-AppendixC%253ADeploybundlesontheSlingOBR">Appendix C: Deploy bundles on the Sling OBR</A></LI>
+</UL></DIV>
+
+
+
+<H2><A name="ReleaseManagement-Prerequisites"></A>Prerequisites</H2>
+
+<UL>
+	<LI>To prepare or perform a release you <B>MUST BE</B> at least be an Apache Sling Committer.</LI>
+	<LI>Each and every release must be signed; therefore the public key should be cross signed by other Apache committers (not required but suggested) and this public key should be added to <A href="http://www.apache.org/dist/sling/KEYS" class="external-link" rel="nofollow">http://www.apache.org/dist/sling/KEYS</A> and either on pool.sks-keyservers.net or pgp.mit.edu (See Appendix A)</LI>
+	<LI>When preparing the release on Mac OS X, check out Appendix B before trying the steps in the next chapter.</LI>
+	<LI>Make sure you have all Apache servers defined in your <A href="http://maven.apache.org/developers/committer-settings.html" class="external-link" rel="nofollow">settings.xml</A></LI>
+	<LI>Check Jira if all issues for this version have been resolved. If not these need either to be moved to a new version or be fixed for the release first <IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/smile.gif" height="20" width="20" align="absmiddle" alt="" border="0"></LI>
+</UL>
+
+
+<P><B>Note</B>: Listing the Apache servers in the <TT>settings.xml</TT> file also requires adding the password to that file. Starting with Maven 2.1 this password may be encrypted and needs not be give in plaintext. Please refer to <A href="http://maven.apache.org/guides/mini/guide-encryption.html" class="external-link" rel="nofollow">Password Encryption</A> for more information.</P>
+
+<P>In the past we staged release candidates on our local machines using a semi-manual process. Now that we inherit from the Apache parent POM version 6, a repository manager will automatically handle staging for you. This means you now only need to specify your GPG passphrase in the release profile of your <TT>${user.home}/.m2/settings.xml</TT>:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-xml">
+<SPAN class="code-tag">&lt;settings&gt;</SPAN>
+    ...
+    <SPAN class="code-tag">&lt;profiles&gt;</SPAN>
+        <SPAN class="code-tag">&lt;profile&gt;</SPAN>
+            <SPAN class="code-tag">&lt;id&gt;</SPAN>apache-release<SPAN class="code-tag">&lt;/id&gt;</SPAN>
+            <SPAN class="code-tag">&lt;properties&gt;</SPAN>
+                <SPAN class="code-tag">&lt;gpg.passphrase&gt;</SPAN> <SPAN class="code-tag"><SPAN class="code-comment">&lt;!-- YOUR KEY PASSPHRASE --&gt;</SPAN></SPAN> <SPAN class="code-tag">&lt;/gpg.passphrase&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/properties&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/profile&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/profiles&gt;</SPAN>
+    ...
+<SPAN class="code-tag">&lt;/settings&gt;</SPAN>
+</PRE>
+</DIV></DIV>
+
+<P>Everything else has been configured in the latest Sling Parent POM:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-xml">
+<SPAN class="code-tag">&lt;parent&gt;</SPAN>
+    <SPAN class="code-tag">&lt;groupId&gt;</SPAN>org.apache.sling<SPAN class="code-tag">&lt;/groupId&gt;</SPAN>
+    <SPAN class="code-tag">&lt;artifactId&gt;</SPAN>sling<SPAN class="code-tag">&lt;/artifactId&gt;</SPAN>
+    <SPAN class="code-tag">&lt;version&gt;</SPAN>6<SPAN class="code-tag">&lt;/version&gt;</SPAN>
+<SPAN class="code-tag">&lt;/parent&gt;</SPAN>
+</PRE>
+</DIV></DIV>
+
+
+
+<H2><A name="ReleaseManagement-StagingtheReleaseCandidates"></A>Staging the Release Candidates</H2>
+
+<P>First prepare your POMs for release:</P>
+
+<OL>
+	<LI>Make sure there are no snapshots in the POMs to be released</LI>
+	<LI>Check that your POMs will not lose content when they are rewritten during the release process
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>$ mvn release:prepare -DdryRun=true
+</PRE>
+</DIV></DIV>
+<P>Compare the original <TT>pom.xml</TT> with the one called <TT>pom.xml.tag</TT> to see if the license or any other info has been removed. This has been known to happen if the starting <TT>&lt;project&gt;</TT> tag is not on a single line. The only things that should be different between these files are the <TT>&lt;version&gt;</TT> and <TT>&lt;scm&gt;</TT> elements. If there are any other changes, you must fix the original <TT>pom.xml</TT> file and commit before proceeding with the release.</P></LI>
+	<LI>Publish a snapshot
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>$ mvn deploy
+...
+[INFO] [deploy:deploy]
+[INFO] Retrieving previous build number from apache.snapshots.https
+...
+</PRE>
+</DIV></DIV>
+	<UL>
+		<LI>If you experience an error during deployment like a HTTP 401 check your settings for the required server entries as outlined in the <B>Prerequisites</B></LI>
+		<LI>Be sure that the generated artifacts respect the Apache release <A href="http://www.apache.org/dev/release.html" class="external-link" rel="nofollow">rules</A>: NOTICE and LICENSE files should be present in the META-INF directory within the jar. For &#45;sources artifacts, be sure that your POM does not use the maven-source-plugin:2.0.3 which is broken. The recommended version at this time is 2.0.4</LI>
+		<LI>You should verify the deployment under the <A href="https://repository.apache.org/content/groups/snapshots/org/apache/sling" class="external-link" rel="nofollow">snapshot</A> repository on Apache</LI>
+	</UL>
+	</LI>
+	<LI>Prepare the release
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>$ mvn release:clean
+$ mvn release:prepare
+</PRE>
+</DIV></DIV>
+	<UL>
+		<LI>Preparing the release will create the new tag in SVN, automatically checking in on your behalf</LI>
+		<LI>If you get a build failure because of an SVN commit problem (namely <EM>The specified baseline is not the latest baseline, so it may not be checked out.</EM>), just repeat the <TT>mvn release:prepare</TT> command until SVN is happy. This is based on a known timing issue when using the European SVN mirror.</LI>
+	</UL>
+	</LI>
+	<LI>Stage the release for a vote
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>$ mvn release:perform
+</PRE>
+</DIV></DIV>
+	<UL>
+		<LI>The release will automatically be inserted into a temporary staging repository for you, see the Nexus <A href="http://www.sonatype.com/books/nexus-book/reference/staging.html" class="external-link" rel="nofollow">staging documentation</A> for full details</LI>
+		<LI>You can continue to use <TT>mvn release:prepare</TT> and <TT>mvn release:perform</TT> on other sub-projects as necessary on the same machine and they will be combined in the same staging repository - this is useful when making a release of multiple Sling modules.</LI>
+	</UL>
+	</LI>
+	<LI>Close the staging repository
+	<UL>
+		<LI>Login to <A href="https://repository.apache.org/" class="external-link" rel="nofollow">https://repository.apache.org</A> using your Apache SVN credentials. Click on <B>Staging</B> on the left. Then click on <B>org.apache.sling</B> in the list of repositories. In the panel below you should see an open repository that is linked to your username and IP. Right click on this repository and select <B>Close</B>. This will close the repository from future deployments and make it available for others to view. If you are staging multiple releases together, skip this step until you have staged everything</LI>
+	</UL>
+	</LI>
+	<LI>Verify the staged artifacts
+	<UL>
+		<LI>If you click on your repository, a tree view will appear below. You can then browse the contents to ensure the artifacts are as you expect them. Pay particular attention to the existence of &#42;.asc (signature) files. If you don't like the content of the repository, right click your repository and choose <B>Drop</B>. You can then rollback your release (see <B>Canceling the Release</B>) and repeat the process</LI>
+		<LI>Note the staging repository URL (especially the number at the end of the URL) you will need this in your vote email</LI>
+	</UL>
+	</LI>
+</OL>
+
+
+
+
+<H2><A name="ReleaseManagement-StartingtheVote"></A>Starting the Vote</H2>
+
+<P>Propose a vote on the dev list with the closed issues, the issues left, and the staging repository - for example:</P>
+
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>To: &quot;Sling Developers List&quot; &lt;dev@sling.apache.org&gt;
+Subject: [VOTE] Release Apache Sling ABC version X.Y.Z
+
+Hi,
+
+We solved N issues in this release:
+https://issues.apache.org/jira/browse/SLING/fixforversion/...
+
+There are still some outstanding issues:
+https://issues.apache.org/jira/browse/SLING/component/...
+
+Staging repository:
+https://repository.apache.org/content/repositories/orgapachesling-[YOUR REPOSITORY ID]/
+
+You can use this UNIX script to download the release and verify the signatures:
+http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh
+
+Usage:
+sh check_staged_release.sh [YOUR REPOSITORY ID] /tmp/sling-staging
+
+Please vote to approve this release:
+
+  [ ] +1 Approve the release
+  [ ]  0 Don't care
+  [ ] -1 Don't release, because ...
+
+This vote will be open for 72 hours.
+</PRE>
+</DIV></DIV>
+
+
+
+<H2><A name="ReleaseManagement-WaitfortheResults"></A>Wait for the Results</H2>
+
+<P>From <A href="http://www.apache.org/foundation/voting.html" class="external-link" rel="nofollow">Votes on Package Releases</A>:</P>
+
+<BLOCKQUOTE><P>Votes on whether a package is ready to be released follow a format similar to majority approval &ndash; except that the decision is officially determined solely by whether at least three &#43;1 votes were registered. Releases may not be vetoed. Generally the community will table the vote to release if anyone identifies serious problems, but in most cases the ultimate decision, once three or more positive votes have been garnered, lies with the individual serving as release manager. The specifics of the process may vary from project to project, but the 'minimum of three &#43;1 votes' rule is universal.</P></BLOCKQUOTE>
+
+
+<P>The list of binding voters is available on the <A href="project-team.html" title="Project Team">Project Team</A> page.</P>
+
+
+<P>If the vote is successful, post the result to the dev list - for example:</P>
+
+
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>To: &quot;Sling Developers List&quot; &lt;dev@sling.apache.org&gt;
+Subject: [RESULT] [VOTE] Release Apache Sling ABC version X.Y.Z
+
+Hi,
+
+The vote has passed with the following result :
+
++1 (binding): &lt;&lt;list of names&gt;&gt;
++1 (non binding): &lt;&lt;list of names&gt;&gt;
+
+I will copy this release to the Sling dist directory and
+promote the artifacts to the central Maven repository.
+</PRE>
+</DIV></DIV>
+
+<P>Be sure to include all votes in the list and indicate which votes were binding. Consider &#45;1 votes very carefully. While there is technically no veto on release votes, there may be reasons for people to vote &#45;1. So sometimes it may be better to cancel a release when someone, especially a member of the PMC, votes &#45;1.</P>
+
+<P>If the vote is unsuccessful, you need to fix the issues and restart the process - see <B>Canceling the Release</B>.</P>
+
+<P>If the vote is successful, you need to promote and distribute the release - see <B>Promoting the Release</B>.</P>
+
+
+
+<H2><A name="ReleaseManagement-CancelingtheRelease"></A>Canceling the Release</H2>
+
+<P>If the vote fails, or you decide to redo the release:</P>
+
+<OL>
+	<LI>Remove the release tag from Subversion (<TT>svn del ...</TT>)</LI>
+	<LI>Login to <A href="https://repository.apache.org/" class="external-link" rel="nofollow">https://repository.apache.org</A> using your Apache SVN credentials. Click on <B>Staging</B> on the left. Then click on <B>org.apache.sling</B> in the list of repositories. In the panel below you should see a closed repository that is linked to your username and IP (if it's not yet closed you need to right click and select <B>Close</B>). Right click on this repository and select <B>Drop</B>.</LI>
+	<LI>Rollback the version in the <TT>pom.xml</TT> and commit any fixes you need to make</LI>
+</OL>
+
+
+
+
+<H2><A name="ReleaseManagement-PromotingtheRelease"></A>Promoting the Release</H2>
+
+<P>If the vote passes:</P>
+
+<OL>
+	<LI>Copy the released artifacts to the Sling dist directory (<TT>/x1/www/www.apache.org/dist/sling</TT>) on <TT>people.apache.org</TT>. This folder is replicated to <A href="http://www.apache.org/dist/sling/" class="external-link" rel="nofollow">http://www.apache.org/dist/sling/</A> a few times a day.</LI>
+	<LI>Delete the old release from the Sling dist directory (it's archived)</LI>
+	<LI>Login to <A href="https://repository.apache.org/" class="external-link" rel="nofollow">https://repository.apache.org</A> with your Apache SVN credentials. Click on <B>Staging</B>. Find your closed staging repository and select it by checking the select box. Select the <B>Releases</B> repository from the drop-down list and click <B>Release</B> from the menu above.</LI>
+	<LI>Once the release is promoted click on <B>Repositories</B>, select the <B>Releases</B> repository and validate that your artifacts are all there.</LI>
+	<LI>If you're releasing bundles, you should also add them to the Sling Release OBR (see <B>Appendix C</B>).</LI>
+	<LI>Update the news section on the website at <A href="news.html" title="News">News</A>.</LI>
+	<LI>Update the download page on the website at <A href="downloads.html" title="Downloads">Downloads</A> to point to the new release.</LI>
+</OL>
+
+
+<P>For the last two tasks, it's better to give the mirrors some time to distribute the uploaded artifacts (one day should be fine). This ensures that once the website (news and download page) is updated, people can actually download the artifacts.</P>
+
+
+
+<H2><A name="ReleaseManagement-UpdateJIRA"></A>Update JIRA</H2>
+
+<P>Go to <A href="https://issues.apache.org/jira/plugins/servlet/project-config/SLING/versions" class="external-link" rel="nofollow">Manage Versions</A> section on the SLING JIRA and mark the X.Y.Z version as released setting the release date to the date the vote has been closed.</P>
+
+<P>Close all issues of the released version.</P>
+
+<P>Also create a new version X.Y.Z+2, if that hasn't already been done.</P>
+
+
+
+<H2><A name="ReleaseManagement-CreateanAnnouncement"></A>Create an Announcement</H2>
+
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>To: &quot;Sling Developers List&quot; &lt;dev@sling.apache.org&gt;, &quot;Apache Announcements&quot; &lt;announce@apache.org&gt;
+Subject: [ANN] Apache Sling ABC version X.Y.Z Released
+
+The Apache Sling team is pleased to announce the release of Apache Sling ABC version X.Y.Z
+
+Apache Sling is a web framework that uses a Java Content Repository, such as Apache Jackrabbit, to store and manage content. Sling applications use either scripts or Java servlets, selected based on simple name conventions, to process HTTP requests in a RESTful way.
+
+&lt;&lt;insert short description of the sub-project&gt;&gt;
+
+http://sling.apache.org/site/apache-sling-ABC.html
+
+This release is available from http://sling.apache.org/site/downloads.cgi and Maven:
+
+&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.sling&lt;/groupId&gt;
+    &lt;artifactId&gt;org.apache.sling.ABC&lt;/artifactId&gt;
+    &lt;version&gt;X.Y.Z&lt;/version&gt;
+&lt;/dependency&gt;
+
+
+Release Notes:
+
+&lt;&lt;insert release notes in text format from JIRA&gt;&gt;
+
+Enjoy!
+
+-The Sling team
+</PRE>
+</DIV></DIV>
+
+
+<P><B>Important</B>: Add the release to the Software section of the next board report below <A href="../SLING/reports.html" class="external-link" rel="nofollow">Reports</A>.</P>
+
+
+
+<H2><A name="ReleaseManagement-RelatedLinks"></A>Related Links</H2>
+
+<OL>
+	<LI><A href="http://www.apache.org/dev/release-signing.html" class="external-link" rel="nofollow">http://www.apache.org/dev/release-signing.html</A></LI>
+	<LI><A href="http://wiki.apache.org/incubator/SigningReleases" class="external-link" rel="nofollow">http://wiki.apache.org/incubator/SigningReleases</A></LI>
+</OL>
+
+
+
+
+<H2><A name="ReleaseManagement-AppendixA%3ACreateandAddyourkeyto"></A>Appendix A: Create and Add your key to <A href="http://www.apache.org/dist/sling/KEYS" class="external-link" rel="nofollow">http://www.apache.org/dist/sling/KEYS</A></H2>
+
+<P>Considering that you are using a &#42;nix system with a working OpenSSH, GnuPG, and bash you can create and add your own key with the following command:</P>
+
+<OL>
+	<LI><EM>Create a public/private pair key</EM>:
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>$ gpg --gen-key
+</PRE>
+</DIV></DIV>
+<P>When gpg asks for e-mail linked the key you <B>MUST USE</B> the &lt;committer&gt;@apache.org one<BR>
+When gpg asks for comment linked the key you <EM>SHOULD USE</EM> &quot;CODE SIGNING KEY&quot;</P></LI>
+	<LI><EM>Add the key to</EM> <A href="http://www.apache.org/dist/sling/KEYS:" class="external-link" rel="nofollow">http://www.apache.org/dist/sling/KEYS:</A> type the following command replacing the word e-mail with your Apache's one (&lt;committer&gt;@apache.org).
+<DIV class="preformatted panel" style="border-width: 1px;"><DIV class="preformattedContent panelContent">
+<PRE>$ (gpg --list-sigs e-mail &amp;&amp; gpg --export --armor e-mail) &gt; toadd.key
+$ scp toadd.key people.apache.org:
+$ ssh people.apache.org &quot;cat toadd.key &gt;&gt; /x1/www/www.apache.org/dist/sling/KEYS&quot;
+</PRE>
+</DIV></DIV></LI>
+	<LI>You are <B>DONE</B>, but to see the changes on <A href="http://www.apache.org/dist/sling/KEYS" class="external-link" rel="nofollow">http://www.apache.org/dist/sling/KEYS</A> you must wait 2 hours</LI>
+</OL>
+
+
+<P>You also have to add your public key either on pool.sks-keyservers.net or pgp.mit.edu (for the statging repository).</P>
+
+
+
+<H2><A name="ReleaseManagement-AppendixB%3ApreparingreleasesonMacOSX"></A>Appendix B: preparing releases on Mac OS X</H2>
+
+<P>When running the <TT>mvn release:prepare</TT> command on Mac OS X, you might see the following error:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">[INFO] Executing: svn --non-interactive commit --file /tmp/maven-scm-802409492.commit --targets /tmp/maven-scm-18804-targets
+[INFO] Working directory: /homedir/dev/sling/dependencymanager
+[INFO] ------------------------------------------------------------------------
+[ERROR] BUILD FAILURE
+[INFO] ------------------------------------------------------------------------
+[INFO] Unable to commit files
+Provider message:
+The svn command failed.
+Command output:
+svn: Commit failed (details follow):
+svn: MKACTIVITY of '/repos/asf/!svn/act/4f11ad5d-9161-0410-b4dd-cb727141ea8c': authorization failed (https:<SPAN class="code-comment">//svn.apache.org)</SPAN></PRE>
+</DIV></DIV>
+
+<P>This is due to a bug in Subversion on the Mac, as described by Brett Porter in his <A href="http://blogs.exist.com/bporter/2008/02/25/working-around-non-interactive-problems-in-leopards-subversion/" class="external-link" rel="nofollow">blog</A>. He proposes putting an &quot;svn&quot; script at the head of your path to fix the issue.</P>
+
+
+
+<H2><A name="ReleaseManagement-AppendixC%3ADeploybundlesontheSlingOBR"></A>Appendix C: Deploy bundles on the Sling OBR</H2>
+
+<P>We are mainting an OSGi Bundle Repository providing all release of the Sling Bundles. This repository is maintained as part of the Apache Sling site and is available at <A href="http://sling.apache.org/obr/sling.xml" class="external-link" rel="nofollow">http://sling.apache.org/obr/sling.xml</A>. The source for this page is maintained in the SVN repository below the <EM>site</EM>, that is at <A href="http://svn.apache.org/repos/asf/sling/site/" class="external-link" rel="nofollow">http://svn.apache.org/repos/asf/sling/site/</A>. To update the Sling OBR repository you must be an Apache Sling Committer since this requires SVN write access.</P>
+
+<P>To update the OBR you may use the Apache Felix Maven Bundle Plugin which prepares the bundle descriptor to be added to the OBR file. Follow these steps to update the OBR:</P>
+
+<P><B>1. Checkout or update the Site Source</B></P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ svn checkout https:<SPAN class="code-comment">//svn.apache.org/repos/asf/sling/site</SPAN>
+</PRE>
+</DIV></DIV>
+
+<P>Note, that you have to checkout the site using the <TT>https</TT> URL, otherwise you will not be able to commit the changes later.</P>
+
+<P><B>2. Deploy the Descriptor</B></P>
+
+<P>To deploy the project descriptor, checkout the tag of the bundle to deploy and run maven</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ svn checkout http:<SPAN class="code-comment">//svn.apache.org/repos/asf/sling/tags/the_module_tag
+</SPAN>$ mvn clean install \
+    org.apache.felix:maven-bundle-plugin:deploy \
+    -DprefixUrl=http:<SPAN class="code-comment">//repo1.maven.org/maven2 \
+</SPAN>    -DremoteOBR=sling.xml \
+    -DaltDeploymentRepository=apache.releases::<SPAN class="code-keyword">default</SPAN>::file:<SPAN class="code-comment">///path_to_site_checkout/obr</SPAN>
+</PRE>
+</DIV></DIV>
+
+<P>This generates the bundle descriptor and adds it to the <TT>sling.xml</TT> file of your site checkout.</P>
+
+
+<P><B>2a. Variant: Refer to Maven Repository</B></P>
+
+<P>Instead of checking out and building the project locally, you may also use the <TT>deploy-file</TT> goal of the Maven Bundle Plugin:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ wget http:<SPAN class="code-comment">//repo1.maven.org/maven2/org/apache/sling/the_module/version/the_module-version.jar
+</SPAN>$ wget http:<SPAN class="code-comment">//repo1.maven.org/maven2/org/apache/sling/the_module/version/the_module-version.pom
+</SPAN>$ mvn org.apache.felix:maven-bundle-plugin:deploy-file \
+    -Dfile=the_module-version.jar -DpomFile=the_module-version.pom \
+    -DbundleUrl=http:<SPAN class="code-comment">//repo1.maven.org/maven2/org/apache/sling/the_module/version/the_module-version.jar \
+</SPAN>    -Durl=file:<SPAN class="code-comment">///path_to_site_checkout/obr \
+</SPAN>    -DprefixUrl=http:<SPAN class="code-comment">//repo1.maven.org/maven2 \
+</SPAN>    -DremoteOBR=sling.xml
+$ rm the_module-version.jar the_module-version.pom
+</PRE>
+</DIV></DIV>
+
+
+<P><B>3. Commite the Site Changes</B></P>
+
+<P>In the Site checkout folder commit the changes to the <TT>obr/sling.xml</TT> files (you may also review the changes using the <TT>svn diff</TT> command).</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ svn commit -m<SPAN class="code-quote">&quot;Add Bundle ABC Version X.Y.Z&quot;</SPAN> obr/sling.xml
+</PRE>
+</DIV></DIV>
+
+
+<P><B>4. Update the Site on</B> <TT><B>people.apache.org</B></TT></P>
+
+<P>After committing the changes, you have to update the site source, which is getting mirrored to the web servers on <TT>people.apache.org</TT></P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ ssh people.apache.org svn update /x1/www/sling.apache.org/obr/sling.xml
+</PRE>
+</DIV></DIV>
+
+<P>After updating the site source it will generally take an hour or two until the changes are visible on the web.</P>
+        <DIV class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
+Last modified by cziegeler@apache.org on Fri Jul 06 04:04:26 EDT 2012
+        </DIV>
+        <DIV class="trademarkFooter">
+Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
+        </DIV>
+    </DIV>
+  </BODY>
+</HTML>
+

Propchange: sling/site/trunk/content/site/release-management.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/site/trunk/content/site/release-management.html
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: sling/site/trunk/content/site/release-management.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: sling/site/trunk/content/site/reports.html
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/site/reports.html?rev=1420577&view=auto
==============================================================================
--- sling/site/trunk/content/site/reports.html (added)
+++ sling/site/trunk/content/site/reports.html Wed Dec 12 09:13:50 2012
@@ -0,0 +1,49 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<HTML>
+  <HEAD>
+    <TITLE>Apache Sling - Reports</TITLE>
+    <LINK rel="stylesheet" href="http://incubator.apache.org/sling/site/media.data/site.css" type="text/css" media="all">
+    <LINK rel="icon" href="http://incubator.apache.org/sling/site/media.data/favicon.ico">
+    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
+  </HEAD>
+  <BODY>
+    <DIV class="title">
+      <DIV class="logo">
+        <A href="http://incubator.apache.org/sling/site/index.html">
+          <IMG border="0" alt="Apache Sling" src="http://incubator.apache.org/sling/site/media.data/logo.png">
+        </A>
+      </DIV>
+      <DIV class="header">
+        <A href="http://incubator.apache.org/">
+          <IMG border="0" alt="Apache Incubator" src="http://incubator.apache.org/images/apache-incubator-logo.png">
+        </A>
+      </DIV>
+    </DIV>
+    <DIV class="menu">
+                                    <P>
+
+<UL>
+	<LI><A href="index.html" title="Index">Home</A></LI>
+	<LI><A href="project-information.html" title="Project Information">Project Information</A></LI>
+	<LI><A href="usecases.html" title="UseCases">Use Cases</A></LI>
+	<LI><A href="guides.html" title="Guides">Guides</A></LI>
+	<LI><A href="documentation.html" title="Documentation">Documentation</A></LI>
+	<LI><A href="plugins.html" title="Plugins">Plugins</A></LI>
+	<LI><A href="faq.html" title="FAQ">FAQ</A></LI>
+	<LI><A href="links.html" title="Links">Links</A></LI>
+	<LI><A href="old-documentation.html" title="Old Documentation">Old Documentation</A></LI>
+	<LI><SPAN class="nobr"><A href="http://cwiki.apache.org/confluence/x/GAUB" title="Visit page outside Confluence" rel="nofollow">Wiki<SUP><IMG class="rendericon" src="http://cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+	<LI><SPAN class="nobr"><A href="http://www.apache.org/foundation/thanks.html" title="Visit page outside Confluence" rel="nofollow">Sponsors<SUP><IMG class="rendericon" src="http://cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+	<LI><SPAN class="nobr"><A href="http://www.apache.org/foundation/sponsorship.html" title="Visit page outside Confluence" rel="nofollow">Sponsorship<SUP><IMG class="rendericon" src="http://cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<P>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </DIV>
+    <DIV class="main">
+<P>Here you find the all reports submitted to the Incubator PMC as well as the report in preparation for the current report period.</P>
+    </DIV>
+  </BODY>
+</HTML>
+

Propchange: sling/site/trunk/content/site/reports.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/site/trunk/content/site/reports.html
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: sling/site/trunk/content/site/reports.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: sling/site/trunk/content/site/repository-based-development.html
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/site/repository-based-development.html?rev=1420577&view=auto
==============================================================================
--- sling/site/trunk/content/site/repository-based-development.html (added)
+++ sling/site/trunk/content/site/repository-based-development.html Wed Dec 12 09:13:50 2012
@@ -0,0 +1,196 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<HTML>
+  <HEAD>
+    <TITLE>Apache Sling - Repository Based Development</TITLE>
+    <LINK rel="stylesheet" href="http://sling.apache.org/site/media.data/site.css" type="text/css" media="all">
+    <LINK rel="icon" href="http://sling.apache.org/site/media.data/favicon.ico">
+    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
+  </HEAD>
+  <BODY>
+    <DIV class="title">
+      <DIV class="logo">
+        <A href="http://sling.apache.org/site/index.html">
+          <IMG border="0" alt="Apache Sling" src="http://sling.apache.org/site/media.data/logo.png">
+        </A>
+      </DIV>
+      <DIV class="header">
+        <A href="http://www.apache.org/">
+          <IMG border="0" alt="Apache" src="http://sling.apache.org/site/media.data/apache.png">
+        </A>
+      </DIV>
+    </DIV>
+    <DIV class="menu">
+<P><B>Documentation</B><BR class="atl-forced-newline">
+<A href="getting-started.html" title="Getting Started">Getting Started</A><BR class="atl-forced-newline">
+<A href="the-sling-engine.html" title="The Sling Engine">The Sling Engine</A><BR class="atl-forced-newline">
+<A href="development.html" title="Development">Development</A><BR class="atl-forced-newline">
+<A href="bundles.html" title="Bundles">Bundles</A><BR class="atl-forced-newline">
+<A href="tutorials-how-tos.html" title="Tutorials & How-Tos">Tutorials &amp; How&#45;Tos</A><BR class="atl-forced-newline">
+<A href="configuration.html" title="Configuration">Configuration</A><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/apidocs/sling6/index.html" class="external-link" rel="nofollow">API docs</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.wiki" class="external-link" rel="nofollow">Wiki</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.faq" class="external-link" rel="nofollow">FAQ</A><BR class="atl-forced-newline"></P>
+
+<P><B>Project info</B><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/site/downloads.cgi" class="external-link" rel="nofollow">Downloads</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/licenses/" class="external-link" rel="nofollow">License</A><BR class="atl-forced-newline">
+<A href="contributing.html" title="Contributing">Contributing</A><BR class="atl-forced-newline">
+<A href="news.html" title="News">News</A><BR class="atl-forced-newline">
+<A href="links.html" title="Links">Links</A><BR class="atl-forced-newline">
+<A href="project-information.html" title="Project Information">Project Information</A><BR class="atl-forced-newline">
+<A href="https://issues.apache.org/jira/browse/SLING" class="external-link" rel="nofollow">Issue Tracker</A><BR class="atl-forced-newline">
+<A href="http://svn.apache.org/viewvc/sling/trunk" class="external-link" rel="nofollow">Browse Source Repository</A><BR class="atl-forced-newline">
+<A href="security.html" title="Security">Security</A><BR class="atl-forced-newline"></P>
+
+<P><B>Sponsorship</B><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/thanks.html" class="external-link" rel="nofollow">Thanks</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/sponsorship.html" class="external-link" rel="nofollow">Become a Sponsor</A><BR>
+<A href="http://www.apache.org/foundation/buy_stuff.html" class="external-link" rel="nofollow">Buy Stuff</A></P>
+
+
+  <IFRAME src="http://www.apache.org/ads/button.html" style="border-width:0; float: left" frameborder="0" scrolling="no" width="135" height="135"></IFRAME>
+  <P style="height: 135px"></P>
+    </DIV>
+    <DIV class="main">
+        <DIV class="breadcrump" style="font-size: 80%;">
+<A href="apache-sling.html" title="Apache Sling Website">Apache Sling Website</A>&nbsp;&gt;&nbsp;<A href="apache-sling.html" title="Apache Sling">Apache Sling</A>&nbsp;&gt;&nbsp;<A href="documentation.html" title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="development.html" title="Development">Development</A>&nbsp;&gt;&nbsp;<A href="" title="Repository Based Development">Repository Based Development</A>
+        </DIV>
+<H1><A name="RepositoryBasedDevelopment-RepositoryBasedDevelopment"></A>Repository Based Development</H1>
+
+<DIV>
+<UL>
+    <LI><A href="#RepositoryBasedDevelopment-WebDAVSupport">WebDAV Support</A></LI>
+<UL>
+    <LI><A href="#RepositoryBasedDevelopment-Configuration">Configuration</A></LI>
+</UL>
+    <LI><A href="#RepositoryBasedDevelopment-EclipsepluginforJCR">Eclipse plugin for JCR</A></LI>
+</UL></DIV>
+
+<H2><A name="RepositoryBasedDevelopment-WebDAVSupport"></A>WebDAV Support</H2>
+
+<P>WebDAV support in Sling is based on the <A href="http://jackrabbit.apache.org/doc/components/jcr-server.html" class="external-link" rel="nofollow">Simple WebDAV</A> implementation of Apache Jackrabbit which is integrated in the <TT>jcr/webdav</TT> project. This bundle provides WebDAV access to Sling's repository in two flavours: (1) Access to all workspaces of the repository on a separate URL space &ndash; by default rooted at <TT>/dav</TT> in the Sling context &ndash; and (2) access to the workspace used by Sling itself at the root of the Sling context.</P>
+
+
+<H4><A name="RepositoryBasedDevelopment-Example"></A>Example</H4>
+
+<P>Consider Sling be installed on a Servlet container in the <TT>/sling</TT> context on <TT>some.host.net:8080</TT>. Here you would access the Sling workspace by directing your WebDAV client to the URL <TT><A href="http://some.host.net:8080/sling" class="external-link" rel="nofollow">http://some.host.net:8080/sling</A></TT>. To access the <TT>sample</TT> workspace, which is not used by Sling itself, you would direct your WebDAV client to the URL <TT><A href="http://some.host.net:8080/sling/dav/sample" class="external-link" rel="nofollow">http://some.host.net:8080/sling/dav/sample</A></TT>.</P>
+
+<P>Please note that accessing the repository in the separate URI space is actually faster, since requests do not pass the Sling resource and script resolution framework but instead hit the Jackrabbit Simple WebDAV Servlet directly.</P>
+
+
+<H4><A name="RepositoryBasedDevelopment-SeparateURISpaceWebDAV"></A>Separate URI Space WebDAV </H4>
+
+<P>When accessing the repository through WebDAV in its separate URI Space, the URLs have the following generic structure:</P>
+
+<DIV class="panel" style="border-width: 1px;"><DIV class="panelContent">
+<P>slingroot/prefix/workspace/item</P>
+</DIV></DIV>
+
+<UL>
+	<LI><TT><B>slingroot</B></TT> is the URL of the Sling web application context. In the above example, this would <TT><A href="http://some.host.net:8080/sling" class="external-link" rel="nofollow">http://some.host.net:8080/sling</A></TT>.</LI>
+	<LI><TT><B>prefix</B></TT> is the URL prefix to address the WebDAV servlet. By default this is set to <TT>/dav</TT> but may be configured to any valid path.</LI>
+	<LI><TT><B>workspace</B></TT> is the name of the workspace to be accessed through WebDAV.</LI>
+	<LI><TT><B>item</B></TT> is the path to the JCR Item to access.</LI>
+</UL>
+
+
+<P>If you access the WebDAV server at the prefix path &ndash; e.g. <TT>!http://localhost:8080/dav</TT> &ndash; you will be redirected to the default workspace with a temporary redirect status 302. Some clients, such as the Linux <EM>davfs</EM>, do not like this redirection and must be configured to explicitly address the default workspace.</P>
+
+
+<H3><A name="RepositoryBasedDevelopment-Configuration"></A>Configuration</H3>
+
+<P>The Jackrabbit Simple WebDAV support in Sling has the following configuration options:</P>
+
+<DIV class="table-wrap">
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TH class="confluenceTh"> Property </TH>
+<TH class="confluenceTh"> Default </TH>
+<TH class="confluenceTh"> Description </TH>
+</TR>
+<TR>
+<TD class="confluenceTd"> Root Path </TD>
+<TD class="confluenceTd"> <TT>/dav</TT> </TD>
+<TD class="confluenceTd"> The root path at which the Simple WebDAV Servlet is accessible. Access to the repository is provided in two ways. You may connect your WebDAV client directly to the root of the Sling web application to access the workspace of Sling directly. The other way is required if you want to connect your WebDAV client to any other workspace besides the Sling workspace. In this case you connect your WebDAV client to another a path comprised of this root path plus the name of the workspace. For example to connect to the <TT>some_other</TT> workspace, you might connect to {{
+<A href="http://slinghost/dav/some_other" class="external-link" rel="nofollow">http://slinghost/dav/some_other</A>
+<P>}}. </P></TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Authentication Realm	</TD>
+<TD class="confluenceTd"> <TT>Sling WebDAV</TT> </TD>
+<TD class="confluenceTd"> The name of the HTTP Basic Authentication Realm presented to the client to ask for authentication credentials to access the repository. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Non Collection Node Typee </TD>
+<TD class="confluenceTd"> [ <TT>nt:file</TT>, <TT>nt:resource</TT> ] </TD>
+<TD class="confluenceTd"> The JCR Node Types considered being non-collection resouces by WebDAV. Any node replying <TT>true</TT> to <TT>Node.isNodeType()</TT> for one of the listed types is considered a non-collection resource. Otherwise the respective node is considered a colleciton resource. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Filter Prefixes </TD>
+<TD class="confluenceTd"> [ <TT>jcr</TT>, <TT>rep</TT> ] </TD>
+<TD class="confluenceTd"> A list of namespace prefixes indicating JCR items filtered from being reported as collection members or properties. The default list includes jcr and rep (Jackrabbit internal namespace prefix) items. Do not modify this setting unless you know exactly what you are doing. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Filter Node Types </TD>
+<TD class="confluenceTd"> &ndash; </TD>
+<TD class="confluenceTd"> Nodetype names to be used to filter child nodes. A child node can be filtered if the declaring nodetype of its definition is one of the nodetype names specified in the nodetypes Element. E.g. defining rep:root as filtered nodetype whould result in jcr:system being hidden but no other child node of the root node, since those are defined by the nodetype nt:unstructered. The default is empty. Do not modify this setting unless you know exactly what you are doing. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Filter URIs </TD>
+<TD class="confluenceTd"> &ndash; </TD>
+<TD class="confluenceTd"> A list of namespace URIs indicating JCR items filtered from being reported as collection members or properties. The default list is empty. Do not modify this setting unless you know exactly what you are doing. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Collection Primary Type </TD>
+<TD class="confluenceTd"> <TT>sling:Folder</TT> </TD>
+<TD class="confluenceTd"> The JCR Primary Node Type to assign to nodes created to reflect WebDAV collections. You may name any primary node type here, provided it allows the creation of nodex of this type and the defined Non-Collection Primary Type below it. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Non-Collection Primary Type </TD>
+<TD class="confluenceTd"> <TT>nt:file</TT> </TD>
+<TD class="confluenceTd"> The JCR Primary Node Type to assign to nodes created to reflect WebDAV non-collection resources. You may name any primary node type here, provided the node type is allowed to be created below nodes of the type defined for the Collection Primary Type and that a child node with the name &quot;jcr:content&quot; may be created below the non-collection resource whose type is defined by the Content Primary Type. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> Content Primary Type </TD>
+<TD class="confluenceTd"> <TT>nt:resource</TT> </TD>
+<TD class="confluenceTd"> The JCR Primary Node Type to assign to the jcr:content child node of a WebDAV non-collection resource. You may name any primary node type here, provided the node type is allowed to be created as the jcr:content child node of the node type defined by the Non-Collection Primary Type. In addition the node type must allow at least the following properties: jcr:data (binary), jcr:lastModified (date), and jcr:mimeType (string). </TD>
+</TR>
+</TBODY></TABLE>
+</DIV>
+
+
+<H4><A name="RepositoryBasedDevelopment-AdvancedTechnicalDetails"></A>Advanced Technical Details</H4>
+
+<P>Since the Jackrabbit Simple WebDAV Servlet is originally configured using an XML configuration file, which provides a great deal of flexibility, the integration into Sling had to assume some simplifications, of which some of the above parameters are part:</P>
+
+<P><B>IOManager</B></P>
+
+<P>This implementation uses the standard <TT>org.apache.jackrabbit.server.io.IOManagerImpl</TT> class and adds the <TT>org.apache.jackrabbit.server.io.DirListingExportHandler</TT> and <TT>org.apache.jackrabbit.server.io.DefaultHandler</TT> IO handlers as its only handlers. The <TT>DefaultHandler</TT> is configured from the three node types listed as configuration parameters above (collection, non-collection, and content primary node types).</P>
+
+<P><B>PropertyManager</B></P>
+
+<P>This implementation uses the standard <TT>org.apache.jackrabbit.server.io.PropertyManagerImpl</TT> and adds the same <TT>DirListingExportHandler</TT> and <TT>DefaultHanlder</TT> instances as its own handlers as are used by the IO Manager.</P>
+
+<P><B>ItemFilter</B></P>
+
+<P>This implementation uses the standard <TT>org.apache.jackrabbit.webdav.simple.DefaultItemFilter</TT> implementation as its item filter and configures the filter with the namespace prefixes and URIs as well as the node types configured as parameters.</P>
+
+<P><B>Collection Node Types</B></P>
+
+<P>This implementation only supports listing node types which are considered representing non-collection resources. All nodes which are instances of any of the configured node types are considered non-collection resources. All other nodes are considere collection resources.</P>
+
+
+<H2><A name="RepositoryBasedDevelopment-EclipsepluginforJCR"></A>Eclipse plugin for JCR</H2>
+
+<P>TBD</P>
+        <DIV class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
+Last modified by fmeschbe on 2008-12-11 06:16:49.0
+        </DIV>
+        <DIV class="trademarkFooter">
+Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
+        </DIV>
+    </DIV>
+  </BODY>
+</HTML>
+

Propchange: sling/site/trunk/content/site/repository-based-development.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/site/trunk/content/site/repository-based-development.html
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: sling/site/trunk/content/site/repository-based-development.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: sling/site/trunk/content/site/request-listeners.html
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/site/request-listeners.html?rev=1420577&view=auto
==============================================================================
--- sling/site/trunk/content/site/request-listeners.html (added)
+++ sling/site/trunk/content/site/request-listeners.html Wed Dec 12 09:13:50 2012
@@ -0,0 +1,114 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<HTML>
+  <HEAD>
+    <TITLE>Apache Sling - Request Listeners</TITLE>
+    <LINK rel="stylesheet" href="http://sling.apache.org/site/media.data/site.css" type="text/css" media="all">
+    <LINK rel="icon" href="http://sling.apache.org/site/media.data/favicon.ico">
+    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
+  </HEAD>
+  <BODY>
+    <DIV class="title">
+      <DIV class="logo">
+        <A href="http://sling.apache.org/site/index.html">
+          <IMG border="0" alt="Apache Sling" src="http://sling.apache.org/site/media.data/logo.png">
+        </A>
+      </DIV>
+      <DIV class="header">
+        <A href="http://www.apache.org/">
+          <IMG border="0" alt="Apache" src="http://sling.apache.org/site/media.data/apache.png">
+        </A>
+      </DIV>
+    </DIV>
+    <DIV class="menu">
+<P><B>Documentation</B><BR class="atl-forced-newline">
+<A href="getting-started.html" title="Getting Started">Getting Started</A><BR class="atl-forced-newline">
+<A href="the-sling-engine.html" title="The Sling Engine">The Sling Engine</A><BR class="atl-forced-newline">
+<A href="development.html" title="Development">Development</A><BR class="atl-forced-newline">
+<A href="bundles.html" title="Bundles">Bundles</A><BR class="atl-forced-newline">
+<A href="tutorials-how-tos.html" title="Tutorials & How-Tos">Tutorials &amp; How&#45;Tos</A><BR class="atl-forced-newline">
+<A href="configuration.html" title="Configuration">Configuration</A><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/apidocs/sling6/index.html" class="external-link" rel="nofollow">API docs</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.wiki" class="external-link" rel="nofollow">Wiki</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.faq" class="external-link" rel="nofollow">FAQ</A><BR class="atl-forced-newline"></P>
+
+<P><B>Project info</B><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/site/downloads.cgi" class="external-link" rel="nofollow">Downloads</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/licenses/" class="external-link" rel="nofollow">License</A><BR class="atl-forced-newline">
+<A href="contributing.html" title="Contributing">Contributing</A><BR class="atl-forced-newline">
+<A href="news.html" title="News">News</A><BR class="atl-forced-newline">
+<A href="links.html" title="Links">Links</A><BR class="atl-forced-newline">
+<A href="project-information.html" title="Project Information">Project Information</A><BR class="atl-forced-newline">
+<A href="https://issues.apache.org/jira/browse/SLING" class="external-link" rel="nofollow">Issue Tracker</A><BR class="atl-forced-newline">
+<A href="http://svn.apache.org/viewvc/sling/trunk" class="external-link" rel="nofollow">Browse Source Repository</A><BR class="atl-forced-newline">
+<A href="security.html" title="Security">Security</A><BR class="atl-forced-newline"></P>
+
+<P><B>Sponsorship</B><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/thanks.html" class="external-link" rel="nofollow">Thanks</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/sponsorship.html" class="external-link" rel="nofollow">Become a Sponsor</A><BR>
+<A href="http://www.apache.org/foundation/buy_stuff.html" class="external-link" rel="nofollow">Buy Stuff</A></P>
+
+
+  <IFRAME src="http://www.apache.org/ads/button.html" style="border-width:0; float: left" frameborder="0" scrolling="no" width="135" height="135"></IFRAME>
+  <P style="height: 135px"></P>
+    </DIV>
+    <DIV class="main">
+        <DIV class="breadcrump" style="font-size: 80%;">
+<A href="apache-sling.html" title="Apache Sling Website">Apache Sling Website</A>&nbsp;&gt;&nbsp;<A href="apache-sling.html" title="Apache Sling">Apache Sling</A>&nbsp;&gt;&nbsp;<A href="documentation.html" title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="the-sling-engine.html" title="The Sling Engine">The Sling Engine</A>&nbsp;&gt;&nbsp;<A href="" title="Request Listeners">Request Listeners</A>
+        </DIV>
+<H1><A name="RequestListeners-RequestListenersupport"></A>Request Listener support</H1>
+
+<P>Sling provides the possibility to &quot;listen&quot; to a request processed by the Sling Engine (<TT>SlingMainServlet</TT>). To get notified you implement the service interface <TT>org.apache.sling.api.request.SlingRequestListener</TT>.</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeHeader panelHeader" style="border-bottom-width: 1px;"><B>SlingRequestListener</B></DIV><DIV class="codeContent panelContent">
+<PRE class="code-java">
+<SPAN class="code-keyword">public</SPAN> <SPAN class="code-keyword">interface</SPAN> SlingRequestListener {
+	
+	<SPAN class="code-keyword">static</SPAN> <SPAN class="code-keyword">final</SPAN> <SPAN class="code-object">String</SPAN> SERVICE_NAME = <SPAN class="code-quote">&quot;org.apache.sling.api.request.SlingRequestListener&quot;</SPAN>;	
+
+	/**
+	 * This method is called from the Sling application <SPAN class="code-keyword">for</SPAN> every
+	 * &lt;code&gt;EventType&lt;/code&gt; appearing during the dispatching of
+	 * a Sling request  
+	 * 
+	 * @param sre the object representing the event
+	 * 
+	 * @see org.apache.sling.api.request.SlingRequestEvent.EventType
+	 */
+	<SPAN class="code-keyword">public</SPAN> void onEvent( SlingRequestEvent sre );
+}
+</PRE>
+</DIV></DIV>
+
+<P>There are no special properties to set. </P>
+
+<H2><A name="RequestListeners-Supportedtypesofevents"></A>Supported types of events</H2>
+
+<P>At the moment you will get two different types of <TT>SlingRequestEvent</TT>:</P>
+<DIV class="table-wrap">
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TH class="confluenceTh"> events types (<TT>SlingRequestEvent.EventType</TT>) </TH>
+<TH class="confluenceTh"> point in time </TH>
+</TR>
+<TR>
+<TD class="confluenceTd"> EVENT_INIT </TD>
+<TD class="confluenceTd"> after entering the <TT>service</TT> method in <TT>SlingMainServlet</TT>. Note that this will be <B>after</B> the <TT>handleSecurity</TT> call. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> EVENT_DESTROY </TD>
+<TD class="confluenceTd"> at the end of the <TT>service</TT> method in <TT>SlingMainServlet</TT> </TD>
+</TR>
+</TBODY></TABLE>
+</DIV>
+
+        <DIV class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
+Last modified by mykee on 2010-07-09 03:46:21.0
+        </DIV>
+        <DIV class="trademarkFooter">
+Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
+        </DIV>
+    </DIV>
+  </BODY>
+</HTML>
+

Propchange: sling/site/trunk/content/site/request-listeners.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/site/trunk/content/site/request-listeners.html
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: sling/site/trunk/content/site/request-listeners.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: sling/site/trunk/content/site/request-parameters.html
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/site/request-parameters.html?rev=1420577&view=auto
==============================================================================
--- sling/site/trunk/content/site/request-parameters.html (added)
+++ sling/site/trunk/content/site/request-parameters.html Wed Dec 12 09:13:50 2012
@@ -0,0 +1,181 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<HTML>
+  <HEAD>
+    <TITLE>Apache Sling - Request Parameters</TITLE>
+    <LINK rel="stylesheet" href="http://sling.apache.org/site/media.data/site.css" type="text/css" media="all">
+    <LINK rel="icon" href="http://sling.apache.org/site/media.data/favicon.ico">
+    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
+  </HEAD>
+  <BODY>
+    <DIV class="title">
+      <DIV class="logo">
+        <A href="http://sling.apache.org/site/index.html">
+          <IMG border="0" alt="Apache Sling" src="http://sling.apache.org/site/media.data/logo.png">
+        </A>
+      </DIV>
+      <DIV class="header">
+        <A href="http://www.apache.org/">
+          <IMG border="0" alt="Apache" src="http://sling.apache.org/site/media.data/apache.png">
+        </A>
+      </DIV>
+    </DIV>
+    <DIV class="menu">
+<P><B>Documentation</B><BR class="atl-forced-newline">
+<A href="getting-started.html" title="Getting Started">Getting Started</A><BR class="atl-forced-newline">
+<A href="the-sling-engine.html" title="The Sling Engine">The Sling Engine</A><BR class="atl-forced-newline">
+<A href="development.html" title="Development">Development</A><BR class="atl-forced-newline">
+<A href="bundles.html" title="Bundles">Bundles</A><BR class="atl-forced-newline">
+<A href="tutorials-how-tos.html" title="Tutorials & How-Tos">Tutorials &amp; How&#45;Tos</A><BR class="atl-forced-newline">
+<A href="configuration.html" title="Configuration">Configuration</A><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/apidocs/sling6/index.html" class="external-link" rel="nofollow">API docs</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.wiki" class="external-link" rel="nofollow">Wiki</A><BR class="atl-forced-newline">
+<A href="http://s.apache.org/sling.faq" class="external-link" rel="nofollow">FAQ</A><BR class="atl-forced-newline"></P>
+
+<P><B>Project info</B><BR class="atl-forced-newline">
+<A href="http://sling.apache.org/site/downloads.cgi" class="external-link" rel="nofollow">Downloads</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/licenses/" class="external-link" rel="nofollow">License</A><BR class="atl-forced-newline">
+<A href="contributing.html" title="Contributing">Contributing</A><BR class="atl-forced-newline">
+<A href="news.html" title="News">News</A><BR class="atl-forced-newline">
+<A href="links.html" title="Links">Links</A><BR class="atl-forced-newline">
+<A href="project-information.html" title="Project Information">Project Information</A><BR class="atl-forced-newline">
+<A href="https://issues.apache.org/jira/browse/SLING" class="external-link" rel="nofollow">Issue Tracker</A><BR class="atl-forced-newline">
+<A href="http://svn.apache.org/viewvc/sling/trunk" class="external-link" rel="nofollow">Browse Source Repository</A><BR class="atl-forced-newline">
+<A href="security.html" title="Security">Security</A><BR class="atl-forced-newline"></P>
+
+<P><B>Sponsorship</B><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/thanks.html" class="external-link" rel="nofollow">Thanks</A><BR class="atl-forced-newline">
+<A href="http://www.apache.org/foundation/sponsorship.html" class="external-link" rel="nofollow">Become a Sponsor</A><BR>
+<A href="http://www.apache.org/foundation/buy_stuff.html" class="external-link" rel="nofollow">Buy Stuff</A></P>
+
+
+  <IFRAME src="http://www.apache.org/ads/button.html" style="border-width:0; float: left" frameborder="0" scrolling="no" width="135" height="135"></IFRAME>
+  <P style="height: 135px"></P>
+    </DIV>
+    <DIV class="main">
+        <DIV class="breadcrump" style="font-size: 80%;">
+<A href="apache-sling.html" title="Apache Sling Website">Apache Sling Website</A>&nbsp;&gt;&nbsp;<A href="apache-sling.html" title="Apache Sling">Apache Sling</A>&nbsp;&gt;&nbsp;<A href="documentation.html" title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="the-sling-engine.html" title="The Sling Engine">The Sling Engine</A>&nbsp;&gt;&nbsp;<A href="" title="Request Parameters">Request Parameters</A>
+        </DIV>
+<H1><A name="RequestParameters-RequestParameterHandlinginSling"></A>Request Parameter Handling in Sling</H1>
+
+
+
+<H2><A name="RequestParameters-ServletAPI"></A>Servlet API</H2>
+
+<P>The Servlet API specification provides the following methods to access the parameters of a request</P>
+
+<DIV class="table-wrap">
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TD class="confluenceTd"> <TT>HttpServletRequest.getQueryString()</TT> </TD>
+<TD class="confluenceTd"> Returns the query part of the request URL </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <TT>ServletRequest.getParameter(String)</TT> </TD>
+<TD class="confluenceTd"> Returns the (first) named parameter </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <TT>ServletRequest.getParameterValues(String)</TT> </TD>
+<TD class="confluenceTd"> Returns all parameters of that name </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <TT>ServletRequest.getParameterMap()</TT> </TD>
+<TD class="confluenceTd"> Returns all parameters as a map of <TT>String[]</TT> </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <TT>ServletRequest.getParameterNames()</TT> </TD>
+<TD class="confluenceTd"> Returns an enumeration of the names of the parameters </TD>
+</TR>
+</TBODY></TABLE>
+</DIV>
+
+
+<P>As a special restriction only two kinds of parameters are supported: (1) Query String parameters and (2) parameters contained in the request data of content type <TT>application/x-www-form-encoded</TT>. That is file uploads using request data of type <TT>multipart/form-data</TT> are not directly supported by the servlet specification. Finally the actual encoding of the parameters is all but safe because the encoding of URLs is not very well defined and browsers do not set the character encoding when sending post data. Fortunately, they use the same character encoding for sending back form content as was used by the server to send the form.</P>
+
+
+<H2><A name="RequestParameters-SlingAPI"></A>Sling API</H2>
+
+<P>To overcome these restrictions and to provide uniform access to request parameters the Sling API in addition to the Servlet API methods to access parameters provides an abstraction of parameters which is applicable to all parameters sent by clients, the <TT>RequestParameter</TT> interface. Through this interface, each parameter may be analyzed for these topics:</P>
+
+<DIV class="table-wrap">
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TD class="confluenceTd"> Raw Content </TD>
+<TD class="confluenceTd"> Byte array and <TT>InputStream</TT> representation of the request parameter values. You will generally use the <TT>InputStream</TT> to handle uploaded files. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> String Content </TD>
+<TD class="confluenceTd"> Access the values as strings is some given encoding (see below) or by requesting the conversion using an explicit encoding. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> File Uploads </TD>
+<TD class="confluenceTd"> Find out whether a parameter is a file upload, get the size in bytes of the parameter value and client side file name as sent by the browser. </TD>
+</TR>
+</TBODY></TABLE>
+</DIV>
+
+
+<P>To accomodate this new interface as well as to provide easy access in the traditional way the <TT>SlingHttpServletRequest</TT> interface adds following methods to the standard Servlet API parameter access methods:</P>
+
+<DIV class="table-wrap">
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TD class="confluenceTd"> <TT>getRequestParameter(String)</TT> </TD>
+<TD class="confluenceTd"> Returns the (first) named parameter as a <TT>RequestParameter</TT> instance </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <TT>getRequestParameters(String)</TT> </TD>
+<TD class="confluenceTd"> Returns the named parameter as an array of <TT>RequestParameter</TT> instances </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <TT>getRequestParameterMap()</TT> </TD>
+<TD class="confluenceTd"> Returns <TT>RequestParameterMap</TT> being a map of <TT>RequestParameter</TT> arrays indexed by parameter names </TD>
+</TR>
+</TBODY></TABLE>
+</DIV>
+
+
+<P>All parameters are handled the same, that is all methods give access to the same parameters regardless of whether the parameters were transmitted in the request query, as part of form encoded data or as part of a <TT>multipart/form-data</TT> request.</P>
+
+<P>As of Sling Engine 2.1.0 the order or request parameters in the <TT>getRequestParameterMap()</TT>, <TT>getParameterMap()</TT>, and <TT>getParameterNams()</TT> is preserved as follows:</P>
+
+<UL>
+	<LI>The first entries are the parameters reported by the servlet container. The order of these parameters amongst each other is not defined. The <TT>SlingHttpServletRequest</TT> provides them in the same order as provided by the servlet container.</LI>
+	<LI>After the servlet container provided parameters are parameters extracted from the request in case <TT>multipart/form-data</TT> POST requests. The order of these parameters is preserved as they are submitted in the request. This conforms to HTML 4.01 spec on forms submitted with multipart/form-data encoding: <EM>A &quot;multipart/form-data&quot; message contains a series of parts, each representing a successful control. The parts are sent to the processing agent in the same order the corresponding controls appear in the document stream. Part boundaries should not occur in any of the data; how this is done lies outside the scope of this specification</EM> (<A href="http://www.w3.org/TR/html401/interact/forms.html" class="external-link" rel="nofollow">17.13.4 Form content types</A>)</LI>
+</UL>
+
+
+<P>Be warned: Only rely on request parameter ordering <TT>multipart/form-data</TT> POST requests without a query part in the request URL.</P>
+
+<H2><A name="RequestParameters-CharacterEncoding"></A>Character Encoding</H2>
+
+<P>Traditionally, the encoding of parameters, especially in text area input forms, has been a big issue. To solve this issue Sling introduces the following convention:</P>
+
+<UL>
+	<LI>All forms should contain a hidden field of the name <TT>&#95;charset&#95;</TT> containing the actual encoding used to send the form from the server to the client</LI>
+	<LI>All forms should be sent with <EM>UTF-8</EM> character encoding</LI>
+</UL>
+
+
+<P>The first rule is essential as it helps decoding the form input correctly. The second rule is not actually a very hard requirement but to enable support for all (or most) character sets used, using <EM>UTF-8</EM> is one of the best choices anyway.</P>
+
+<P>When Sling is now receiving a request and is asked for the parameters, the parameters are parsed in two phases: The first phase just parses the raw input data using an identity transformation of bytes to characters. This identity transformation happens to generate strings as the original data was generated with <TT>ISO-8859-1</TT> encoding. The second phase locates the <TT>&#95;charset&#95;</TT> parameter and fixes the character encodings of the parameters as follows:</P>
+
+<UL>
+	<LI>All names of the parameters are re-encoded</LI>
+	<LI>The parameter values are re-encoded, unless the parameter value is an uploaded file. Actually the parameter (not the files of course) are internally as <TT>byte[]</TT> where the conversion to a string is done on the fly (and yes, the conversion using the <TT>&#95;charset&#95;</TT> character encoding is of course cached for performance reasons)</LI>
+	<LI>If the parameter is an uploaded file, the file name is re-encoded on the fly when accessed</LI>
+</UL>
+
+
+<DIV class="panelMacro"><TABLE class="infoMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD>Up to and including Sling Engine 2.2.2 request parameters are always decoded with ISO-8859-1 encoding if the <TT>&#95;charset&#95;</TT> request parameter is missing. As of Sling Engine 2.2.4 the <TT>&#95;charset&#95;</TT> request parameter is optional. As of this version the Sling Main Servlet supports a configuration setting which allows to change the default character encoding used if the <TT>&#95;charset&#95;</TT> request parameter is missing. To enable this functionality set the <TT>sling.default.parameter.encoding</TT> parameter of the Sling Main Servlet (PID <TT>org.apache.sling.engine.impl.SlingMainServlet</TT>) configuration to the desired encoding, which of course must be supported by the actual Java Plat
 form.</TD></TR></TABLE></DIV>
+        <DIV class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
+Last modified by fmeschbe on 2011-02-28 05:07:31.0
+        </DIV>
+        <DIV class="trademarkFooter">
+Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
+        </DIV>
+    </DIV>
+  </BODY>
+</HTML>
+

Propchange: sling/site/trunk/content/site/request-parameters.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/site/trunk/content/site/request-parameters.html
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: sling/site/trunk/content/site/request-parameters.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message