Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mauvais redirection sur des tutoriels qui n'existent plus #3223

Closed
gustavi opened this issue Dec 4, 2015 · 2 comments
Closed

Mauvais redirection sur des tutoriels qui n'existent plus #3223

gustavi opened this issue Dec 4, 2015 · 2 comments
Assignees
Labels
C-Back Concerne le back-end Django
Milestone

Comments

@gustavi
Copy link
Contributor

gustavi commented Dec 4, 2015

Issue à fermer quand v16 en prod et que les url foireuses sur sentry auront été testées.

Via Sentry (URL + /zeste-de-savoir/backend/group/276/).

En gros c'est cette ligne qui plante : https://github.com/zestedesavoir/zds-site/blob/dev/zds/tutorialv2/views/views_published.py#L36. Je vais fixer ça de suite.

Les logs :

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "django/views/generic/base.py", line 189, in get
    url = self.get_redirect_url(*args, **kwargs)
  File "zds/tutorialv2/views/views_published.py", line 36, in get_redirect_url
    obj = PublishableContent.objects.get(old_pk=int(kwargs["pk"]), type="TUTORIAL")
  File "django/db/models/manager.py", line 92, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 357, in get
    self.model._meta.object_name)
@gustavi gustavi added the C-Front Concerne l'interface du site label Dec 4, 2015
@gustavi gustavi self-assigned this Dec 4, 2015
@gustavi gustavi added C-Back Concerne le back-end Django and removed C-Front Concerne l'interface du site labels Dec 4, 2015
SpaceFox added a commit that referenced this issue Jan 14, 2016
Fix #3223 : Mauvais redirection sur des tutoriels qui n'existent plus
@SpaceFox
Copy link
Contributor

(Issue conservée ouverte à la demande de @gustavi )

@SpaceFox SpaceFox reopened this Jan 14, 2016
@SpaceFox SpaceFox added this to the Version de développement milestone Jan 14, 2016
@gustavi
Copy link
Contributor Author

gustavi commented Feb 18, 2016

Fixé.

@gustavi gustavi closed this as completed Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Back Concerne le back-end Django
Projects
None yet
Development

No branches or pull requests

2 participants