Enhancement #1158

Allow downloads (direct and zoning) to be fetch with HTTP basic auth and constant URL

Added by Blatti Yves almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:10/08/2015
Priority:HighDue date:
Assignee:-% Done:

100%

Category:SHOP
Target version:4.3.2
Sponsor: Ergonomic impact:

Display the direct link to the user (optional, what do you think ?)

Functional impact:

A file offered by shop can be downloaded via programs/scripts using HTTP auth and constant known URLs


Description

We have users that want to automate the updates of their datasets by fetching them on easySDI.

The idea is to allow a download to be done by scripts/programs. For that we need:
  • Ensure we have consistent URLs (adding GET URL, not only POST) known by users that have access to the download page
  • Allow HTTP authentication to download the files (does not log the user in, just allow a single access)
Example use case (with grid):
  • The state (canton) grant an organism category (communes) to download a dataset using zoning.
  • The users (communes) want to use this to update their local datasets by scripting the download and update
  • The first time, the user has to go to the zoning/grid download page, he can download the file and get the download URL to be reused after having accepted the conditions
  • He now can use this direct link with an HTTP basic authentication to get the file file by using a script

Get the direct link after accepting the conditions:

Alternative: the download button link contains the direct link (updated by jQuery when user accepts the terms and conditions) -> no need for displaying the link

get_direct_link_from_grid.png (450 KB) Blatti Yves, 10/08/2015 10:52 AM


Related issues

Related to easySDI - Enhancement #1159: Add backend authentication to zoning download Closed 10/08/2015
Related to easySDI - Defect #1160: Zoning download access scope doesn't work Closed 10/08/2015

History

#1 Updated by Blatti Yves almost 4 years ago

#2 Updated by Blatti Yves almost 4 years ago

  • Related to Defect #1160: Zoning download access scope doesn't work added

#3 Updated by Blatti Yves almost 4 years ago

+1

#4 Updated by Portier Thomas almost 4 years ago

Just some questions:
- do you have several partners that need this functionnality
- don't you think a wfs webservice should be more appropriate?

#5 Updated by Blatti Yves almost 4 years ago

Hi Thomas,
  • for now our main provider (the state) will use the grid to give secured free access for the municipalities. Since they do it for 300+ municipalities, why not use the same system for the few one(5-10) that want to get the files automatically...
  • of course the WFS would the sexy way but:
    • some data have legal formats
    • some need relational models (with constraints... Like interlis)
    • and (afaik) the state does currently not have the infrastructure

#6 Updated by Portier Thomas almost 4 years ago

Ok for me

+1

#7 Updated by Van Hoecke Hélène almost 4 years ago

  • Status changed from Request For Comments to Accepted
  • Assignee changed from Technical Committee to Van Hoecke Hélène
  • Target version set to 4.3.2

#9 Updated by Blatti Yves over 3 years ago

  • File 182-failed.zip added
  • File 182-original.zip added
  • Status changed from Accepted to Affected
  • % Done changed from 0 to 80

Basic authentication and URL are good to me.
Some failures are due to : #1159

#10 Updated by Blatti Yves over 3 years ago

  • File deleted (182-original.zip)

#11 Updated by Blatti Yves over 3 years ago

  • File deleted (182-failed.zip)

#12 Updated by Blatti Yves over 3 years ago

  • Status changed from Affected to Resolved
  • % Done changed from 80 to 100

#13 Updated by Van Hoecke Hélène over 3 years ago

  • Status changed from Resolved to Closed

#14 Updated by Van Hoecke Hélène over 3 years ago

  • Assignee deleted (Van Hoecke Hélène )

Also available in: Atom PDF