Skip to content

url encode #3

Description

@feifangit

please use urllib.quote() to replace special characters. otherwise, API will fail while processing path name like "Sony Ericssion"

Error log
08/27/2012 11:56:50 AM - webhdfs - DEBUG - List directory: /webhdfs/v1/tmp/x/all_models/SONY ERICSSON?op=LISTSTATUS&user.name=hdfs
08/27/2012 11:56:50 AM - webhdfs - DEBUG - HTTP Response: 400, Bad Request

Correct log:
08/27/2012 12:14:18 PM - webhdfs - DEBUG - List directory: /webhdfs/v1/tmp/x/all_models/SONY%20ERICSSON?op=LISTSTATUS&user.name=hdfs
08/27/2012 12:14:18 PM - webhdfs - DEBUG - HTTP Response: 200, OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions