Project

Profile

Help

Task #149

Create 1.4 compatible HttpResponseRedirect object that allows the body to be set.

Added by bmbouter over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Sprint Candidate:
Tags:
Pulp 2
Sprint:
February 2015
Quarter:

Description

A handful of Pulp URLs want to return redirect objects and also set the body contents in that redirect. This is not possible in Django 1.4. This is further complicated because newer versions of Django have made some backwards incompatible changes in this area making it difficult to create one object that will provide this functionality in multiple version of Django. The easiest thing to do is to backport a compat version of the 1.5+ HttpResponseRedirect behaviors so that it can be used by Django 1.4. It won't be very difficult, but it needs to be done.

This will block a handful of URLs until this helper object can be made.

History

#1 Updated by bmbouter over 5 years ago

  • Priority changed from Normal to High

#2 Updated by rbarlow over 5 years ago

  • Tags Sprint Candidate added

#3 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

#4 Updated by mhrivnak over 5 years ago

  • Sprint/Milestone set to 12

#5 Updated by rbarlow over 5 years ago

  • Tags deleted (Sprint Candidate)

On my RHEL 6 dev box, I seem to have a Django 1.4 and 1.5 available, both from EPEL with frustratingly different naming schemes:

(pulp)[rbarlow@grapefruit pulp]$ sudo yum info Django14
Loaded plugins: product-id, pulp-profile-update, refresh-packagekit, subscription-manager
Available Packages
Name        : Django14
Arch        : noarch
Version     : 1.4.18
Release     : 1.el6
Size        : 4.3 M
Repo        : epel
Summary     : A high-level Python Web framework
URL         : http://www.djangoproject.com/
License     : BSD
Description : Django is a high-level Python Web framework that encourages rapid
            : development and a clean, pragmatic design. It focuses on automating as
            : much as possible and adhering to the DRY (Don't Repeat Yourself)
            : principle.

(pulp)[rbarlow@grapefruit pulp]$ sudo yum info python-django15
Loaded plugins: product-id, pulp-profile-update, refresh-packagekit, subscription-manager
Available Packages
Name        : python-django15
Arch        : noarch
Version     : 1.5.6
Release     : 1.el6
Size        : 4.6 M
Repo        : epel
Summary     : A high-level Python Web framework
URL         : http://www.djangoproject.com/
License     : BSD
Description : Django is a high-level Python Web framework that encourages rapid
            : development and a clean, pragmatic design. It focuses on automating as
            : much as possible and adhering to the DRY (Don't Repeat Yourself)
            : principle.

Does this mean we don't have to worry about this task?

#6 Updated by rbarlow over 5 years ago

Nevermind, bmbouter set me straight on IRC. Looks like the python-django15 doesn't let you import it as "django". ☹

#7 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100

#8 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from MODIFIED to 7

#9 Updated by rbarlow over 5 years ago

  • Status changed from 7 to 6

Since this isn't in a release, I don't think we should mark it as closed.

#10 Updated by dkliban@redhat.com about 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 2 years ago

  • Sprint set to February 2015

#13 Updated by bmbouter over 2 years ago

  • Sprint/Milestone deleted (12)

#14 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF