EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Allow mixed case project URLs #701

Closed LucaCinquini closed 10 years ago

LucaCinquini commented 10 years ago

Who: Ryan

Request: allow a user to request a URL such as /projects/ESMPy/, in addition to the already working /projects/esmpy/

LucaCinquini commented 10 years ago

Done and ready to test.

murphysj commented 10 years ago

I am not sure how this is supposed to work.

I was able to make a project with a shortname=esmf when the original is shortname=ESMF

I was not able to make a project with a shortname=CoG when the original was shortname=cog

Did this get bounced off of Cecelia? I wonder if this is a good idea?

LucaCinquini commented 10 years ago

Hi Sylvia, this is not a case of having two projects with names that differ only by case, like "CoG" and "COG". Rather, it's a question of having one project like "ESMPy", but enable both URLs: /projects/ESMPy/ /projects/esmpy/

murphysj commented 10 years ago

How do I test this then? Did you enable something on the update project page?

On Tue, Dec 17, 2013 at 8:46 AM, Luca Cinquini notifications@github.comwrote:

Hi Sylvia, this is not a case of having two projects with names that differ only by case, like "CoG" and "COG". Rather, it's a question of having one project like "ESMPy", but enable both URLs: /projects/ESMPy/ /projects/esmpy/

— Reply to this email directly or view it on GitHubhttps://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30761784 .


Sylvia Murphy NESII/CIRES/NOAA Earth System Research Laboratory 325 Broadway, Boulder CO 80305 Time Zone: U.S. Mountain Web: http://www.esrl.noaa.gov/nesii/ Email: sylvia.murphy@noaa.gov Phone: 303-497-7753

LucaCinquini commented 10 years ago

I think you can just go to some project home page, then request the same URL with the project in a different case. L

On Dec 17, 2013, at 7:55 AM, Sylvia Murphy wrote:

How do I test this then? Did you enable something on the update project page?

On Tue, Dec 17, 2013 at 8:46 AM, Luca Cinquini notifications@github.com<mailto:notifications@github.com>wrote:

Hi Sylvia, this is not a case of having two projects with names that differ only by case, like "CoG" and "COG". Rather, it's a question of having one project like "ESMPy", but enable both URLs: /projects/ESMPy/ /projects/esmpy/

— Reply to this email directly or view it on GitHubhttps://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30761784 .


Sylvia Murphy NESII/CIRES/NOAA Earth System Research Laboratory 325 Broadway, Boulder CO 80305 Time Zone: U.S. Mountain Web: http://www.esrl.noaa.gov/nesii/ Email: sylvia.murphy@noaa.govmailto:sylvia.murphy@noaa.gov Phone: 303-497-7753

— Reply to this email directly or view it on GitHubhttps://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30762687.

murphysj commented 10 years ago

Hi Luca, FYI, I was able earlier to create a new project with a lower case ESMF when the original was upper case.

How was this allowed?

It created a problem with the project browser that is trying to return two projects.

On Tue, Dec 17, 2013 at 9:05 AM, Luca Cinquini notifications@github.comwrote:

I think you can just go to some project home page, then request the same URL with the project in a different case. L

On Dec 17, 2013, at 7:55 AM, Sylvia Murphy wrote:

How do I test this then? Did you enable something on the update project page?

On Tue, Dec 17, 2013 at 8:46 AM, Luca Cinquini <notifications@github.com mailto:notifications@github.com>wrote:

Hi Sylvia, this is not a case of having two projects with names that differ only by case, like "CoG" and "COG". Rather, it's a question of having one project like "ESMPy", but enable both URLs: /projects/ESMPy/ /projects/esmpy/

— Reply to this email directly or view it on GitHub< https://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30761784> .


Sylvia Murphy NESII/CIRES/NOAA Earth System Research Laboratory 325 Broadway, Boulder CO 80305 Time Zone: U.S. Mountain Web: http://www.esrl.noaa.gov/nesii/ Email: sylvia.murphy@noaa.govmailto:sylvia.murphy@noaa.gov Phone: 303-497-7753

— Reply to this email directly or view it on GitHub< https://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30762687>.

— Reply to this email directly or view it on GitHubhttps://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30763670 .


Sylvia Murphy NESII/CIRES/NOAA Earth System Research Laboratory 325 Broadway, Boulder CO 80305 Time Zone: U.S. Mountain Web: http://www.esrl.noaa.gov/nesii/ Email: sylvia.murphy@noaa.gov Phone: 303-497-7753

murphysj commented 10 years ago

This is really not enabling both URLs.. so that either /esmpy or /ESMPy show up, it is that if someone types both, they revert to the main URL.

So if I type /ESMPy it redirects correctly to /esmpy

You never see ESMPy.

Is that what you thought you did?

LucaCinquini commented 10 years ago

Yes, this is what it needs to do - a simple redirect. L

LucaCinquini commented 10 years ago

I think we should NOT allow two project that differ only in case. Can you file a ticket to have this fixed, maybe for 2.1 ? thanks, L

On Dec 17, 2013, at 9:17 AM, Sylvia Murphy wrote:

Hi Luca, FYI, I was able earlier to create a new project with a lower case ESMF when the original was upper case.

How was this allowed?

It created a problem with the project browser that is trying to return two projects.

On Tue, Dec 17, 2013 at 9:05 AM, Luca Cinquini notifications@github.com<mailto:notifications@github.com>wrote:

I think you can just go to some project home page, then request the same URL with the project in a different case. L

On Dec 17, 2013, at 7:55 AM, Sylvia Murphy wrote:

How do I test this then? Did you enable something on the update project page?

On Tue, Dec 17, 2013 at 8:46 AM, Luca Cinquini notifications@github.com<mailto:notifications@github.com mailto:notifications@github.com>wrote:

Hi Sylvia, this is not a case of having two projects with names that differ only by case, like "CoG" and "COG". Rather, it's a question of having one project like "ESMPy", but enable both URLs: /projects/ESMPy/ /projects/esmpy/

— Reply to this email directly or view it on GitHub< https://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30761784> .


Sylvia Murphy NESII/CIRES/NOAA Earth System Research Laboratory 325 Broadway, Boulder CO 80305 Time Zone: U.S. Mountain Web: http://www.esrl.noaa.gov/nesii/ Email: sylvia.murphy@noaa.govmailto:sylvia.murphy@noaa.gov Phone: 303-497-7753

— Reply to this email directly or view it on GitHub< https://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30762687>.

— Reply to this email directly or view it on GitHubhttps://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30763670 .


Sylvia Murphy NESII/CIRES/NOAA Earth System Research Laboratory 325 Broadway, Boulder CO 80305 Time Zone: U.S. Mountain Web: http://www.esrl.noaa.gov/nesii/ Email: sylvia.murphy@noaa.govmailto:sylvia.murphy@noaa.gov Phone: 303-497-7753

— Reply to this email directly or view it on GitHubhttps://github.com/EarthSystemCoG/COG/issues/701#issuecomment-30770527.

murphysj commented 10 years ago

verified on dev-hydra