[ 
https://issues.apache.org/jira/browse/HDDS-905?focusedWorklogId=184131&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-184131
 ]

ASF GitHub Bot logged work on HDDS-905:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Jan/19 09:15
            Start Date: 11/Jan/19 09:15
    Worklog Time Spent: 10m 
      Work Description: elek commented on issue #463: HDDS-905. Create 
informative landing page for Ozone S3 gateway
URL: https://github.com/apache/hadoop/pull/463#issuecomment-453444347
 
 
   rerun tests
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 184131)
    Time Spent: 20m  (was: 10m)

> Create informative landing page for Ozone S3 gateway 
> -----------------------------------------------------
>
>                 Key: HDDS-905
>                 URL: https://issues.apache.org/jira/browse/HDDS-905
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>          Components: S3
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Major
>              Labels: newbie, pull-request-available
>         Attachments: HDDS-905.001.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {color:#FF0000}{color}
> As of now the main s3g endpoint (such as 
> [http://localhost:9878|http://localhost:9878/]) returns with HTTP 500 if it's 
> opened from the browser.
> The main endpoint is used to get all the available buckets, but amazon 
> returns with a redirect IF the Authorization header is missing:
> {code:java}
>  curl -v s3.us-east-2.amazonaws.com
> *   Trying 52.219.88.59...
> * TCP_NODELAY set
> * Connected to s3.us-east-2.amazonaws.com (52.219.88.59) port 80 (#0)
> > GET / HTTP/1.1
> > Host: s3.us-east-2.amazonaws.com
> > User-Agent: curl/7.62.0
> > Accept: */*
> > 
> < HTTP/1.1 307 Temporary Redirect
> < x-amz-id-2: 
> fq8RXJdSlVo8PqidHaP8XXczMfLSEAt5Tm4JP98atilWRjalMvqtPa6mwq6rEIXz4cCPrPqJkO4=
> < x-amz-request-id: 5C6ACE6D6FC273B9
> < Date: Thu, 06 Dec 2018 11:16:36 GMT
> < Location: https://aws.amazon.com/s3/
> < Content-Length: 0
> {code}
> I propose to do the same for Ozone:
> 1.) If the authorization header is missing on the root URL, redirect to an 
> internal page.
>  2.) Create an internal landing page at [http://localhost:9878/_ozone] with 
> the following content:
>  a) A very short introduction to use the endpoint (with aws client)
>  b) The actual documentation of ozone (which is also included in the scm/om 
> ui)
> Note: we need an url schema which is not conflicting with the real REST 
> requests. As the bucket and volume names should not contain underscore in 
> ozone, we can use it to prefix all the urls:
>  * [http://localhost:9878/_ozone] --> landing page
>  * [http://localhost:9878/_ozone/(css]|js) --> required resources
>  * [http://localhost:9878/_ozone/docs] --> Documentation with the required 
> resources.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to