infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-15966) Redirects for mboxes that have been moved
Date Wed, 11 Apr 2018 12:01:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-15966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433794#comment-16433794
] 

ASF GitHub Bot commented on INFRA-15966:
----------------------------------------

gmcdonald closed pull request #864: INFRA-15966 - renamed projects and lists (mail-private)
URL: https://github.com/apache/infrastructure-puppet/pull/864
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/data/nodes/mailprivate-vm.apache.org.yaml b/data/nodes/mailprivate-vm.apache.org.yaml
index 52d27dd93..912fa808e 100644
--- a/data/nodes/mailprivate-vm.apache.org.yaml
+++ b/data/nodes/mailprivate-vm.apache.org.yaml
@@ -45,7 +45,7 @@ vhosts_asf::modules::modules:
     name: 'macro'
 
 # define custom config file to check for ASF membership
-# This is needed to allow the use of conflicting LDAP settings within a RequireAny block

+# This is needed to allow the use of conflicting LDAP settings within a RequireAny block
 apache::custom_config:
   authz_ldap_group_member:
     content: |
@@ -172,7 +172,7 @@ vhosts_asf::vhosts::vhosts:
       ## Now include the config file that will explictly list all PMCs with configured access.
       Include /etc/apache2/sites-enabled/mail-private-pmcs.macro
 
-      # Allow members full access from here. 
+      # Allow members full access from here.
       <Location /members/private-arch>
         MboxIndex On
         MboxRootPath "/members/private-arch/"
@@ -205,3 +205,76 @@ vhosts_asf::vhosts::vhosts:
         </RequireAll>
       </Location>
 
+      # maintain permalinks for renamed lists (members only)
+      RedirectMatch Permanent ^/members/private-arch/apachecon-(barcamp|fastfeather|speakers)-2011-NA
/members/private-arch/apachecon-$1-2011-na
+
+      <Macro RenameList $old $new>
+        RedirectMatch Permanent "^/members/private-arch/$old($|/.*$)" "/members/private-arch/$new$1"
+      </Macro>
+
+      Use RenameList "code-awards"            "community-mentors"
+      Use RenameList "infrastructure"         "infra-users"
+      Use RenameList "infrastructure-private" "infra-private"
+      Use RenameList "infrastructure-tools"   "infra-tools" # migrated then closed down
+
+      # Public list initially created as private
+      <Macro PublicList $name>
+        RedirectMatch Permanent "^/(pmc|members)/private-arch/$name($|/.*$)" "http://mail-archives.apache.org/mod_mbox/$name$2"
+      </Macro>
+
+      Use PublicList "batchee-dev"
+      Use PublicList "bigtop-issues"
+      Use PublicList "lens-commits"
+      Use PublicList "olingo-user"
+
+      # project renames
+
+      # Use Redirect here so auth works and user sees updated URL
+      <Macro RenameProject $old $new>
+        RedirectMatch Permanent "^/(pmc|members)/private-arch/$old-(.*)" "/$1/private-arch/$new-$2"
+        RedirectMatch Permanent "^/(pmc|members)/private-arch/incubator-$old-(.*)" "/$1/private-arch/incubator-$new-$2"
+      </Macro>
+
+      Use RenameProject "amber"        "oltu"
+      Use RenameProject "argus"        "ranger"
+      Use RenameProject "callback"     "cordova"
+      Use RenameProject "connectors"   "manifoldcf"
+      Use RenameProject "deft"         "awf"
+      Use RenameProject "fleece"       "johnzon"
+      Use RenameProject "mysos"        "cotton"
+      Use RenameProject "ooo"          "openoffice"
+      Use RenameProject "openejb"      "tomee"
+      Use RenameProject "optiq"        "calcite"
+      Use RenameProject "oscar"        "felix"
+      Use RenameProject "quarks"       "edgent"
+      Use RenameProject "rat "         "creadur"
+      Use RenameProject "stratosphere" "flink"
+      Use RenameProject "zest"         "polygene"
+
+      #sub-project renames
+      Use RenameProject "lucene-lucene-net" "lucenenet"
+
+      # Conditional incubator renames
+
+      AllowEncodedSlashes On
+      RewriteEngine On
+
+      # Redirect incubator-name-list to name-list if the former does not exist and the latter
does
+      # This allows for graduated podlings
+      # %1 = pmc/members; %2 = incubator list; %3 = rest of path
+      RewriteCond %%{}{REQUEST_URI} ^/(pmc|members)/private-arch/incubator-([^/]+)($|/.*$)
+      RewriteCond /x1/mail-private.apache.org/mod_mbox/incubator-%2 !-d
+      RewriteCond /x1/mail-private.apache.org/mod_mbox/%2 -d
+      # Use Redirect so auth works and user sees updated URL
+      RewriteRule . /%1/private-arch/%2%3 [L,R=301]
+
+      # Redirect prefix-(p)pmc to prefix-private if the former does not exist and the latter
does
+      # This allows for (p)pmc lists that were renamed to private
+      # Note that depot-ppmc and derby-ppmc were not renamed as they were already closed
+      # Ditto avalon-pmc and commons-pmc
+      # %1 = pmc|members; %2 = prefix; %3 = p?pmc; %4 = rest of path
+      RewriteCond %%{}{REQUEST_URI} ^/(pmc|members)/private-arch/([^/]+)-(p?pmc)($|/.*$)
+      RewriteCond /x1/mail-private.apache.org/mod_mbox/%2-%3 !-d
+      RewriteCond /x1/mail-private.apache.org/mod_mbox/%2-private -d
+      # Use Redirect so auth works and user sees updated URL
+      RewriteRule . /%1/private-arch/%2-private%4 [L,R=301]


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Redirects for mboxes that have been moved
> -----------------------------------------
>
>                 Key: INFRA-15966
>                 URL: https://issues.apache.org/jira/browse/INFRA-15966
>             Project: Infrastructure
>          Issue Type: Task
>          Components: Mail Archives
>            Reporter: Sebb
>            Priority: Minor
>              Labels: pull-request-available
>
> When podlings graduate or private lists are made public, the name of the mailing list
may change.
> This does not affect which mails are stored in the archive, but may affect Permalinks
for the original list.
> For example, code-awards@apache was renamed to mentors@community
> So the link
> https://mail-search.apache.org/members/private-arch/code-awards/200506.mbox/%3c31cc3736050604103053254c80@mail.gmail.com%3e
> would become
> https://mail-search.apache.org/members/private-arch/community-mentors/200506.mbox/%3c31cc3736050604103053254c80@mail.gmail.com%3e
> Note that only the directory name under private-arch has changed.
> There may be some changes that are more extensive, e.g. if a list was accidentally created
as private initially, the URL hostname will also change.
> For example:
> https://mail-search.apache.org/members/private-arch/olingo-user/201404.mbox/%3cCAOEBAJCj65fZt+F3uSN6MP2VqUBbMxPZ=D-YCDEkBZN1SS2szA@mail.gmail.com%3e
> is now at
> http://mail-archives.apache.org/mod_mbox/olingo-user/201404.mbox/%3cCAOEBAJCj65fZt+F3uSN6MP2VqUBbMxPZ=D-YCDEkBZN1SS2szA@mail.gmail.com%3e
> At present, both links work, because the old directories on thor have not been tidied
up. 
> However for other changes that might not be the case. 
> Also if the mbox files are restored from minotaur, the old copies no longer exist.
> So I think there need to be some form of redirection to handle the earlier links.
> The full lists of renamed directories is currently being established and will be added
to this issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message