From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Symlink redirection breaks FTP site re-organisation |
Date: | 2016-06-06 12:11:12 |
Message-ID: | CA+OCxozS4QQdeggL0QgqNPpEJfapyVd60Lj9NJ7YuMbqMxb+Bg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-www |
Hi,
Whilst re-organising the pgAdmin website in preparation for pgAdmin 4,
it became clear to me that the way we currently handle symlinks on the
website FTP browser is broken. For example, the current pgAdmin site
has URLs like:
https://www.postgresql.org/pgadmin3/release/v1.22.1/...
I want to change this to:
https://www.postgresql.org/pgadmin/pgadmin3/v1.22.1/...
Thus I renamed/symlinked the pgadmin3 dir on Fendaus and the release
dir on Paxsor (the pgAdmin master server), however, whilst when we
encounter a symlink in the browser we re-write it to the target (so
that: https://www.postgresql.org/pgadmin3/ is rewritten to
https://www.postgresql.org/pgadmin/) we don't handle anything deeper
than that, so https://www.postgresql.org/pgadmin/release is a 404,
never mind anything below it.
So, I'm thinking that we need to have the website stop rewriting the
URLs, or at least generate the index pages under both paths, as you
would see if you traversed the filesystem itself.
In doing this, I think we should also use a different icon for
symlinks, so users can see that they're following a path (and maybe
display the filename as "pgadmin3 -> pgadmin" as well).
Thoughts?
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2016-06-06 15:02:36 | Re: Symlink redirection breaks FTP site re-organisation |
Previous Message | Alvaro Herrera | 2016-05-30 18:38:41 | Re: pginfra - Would like to contribute a sample database, Adventureworks |