Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-21 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Mariusz Felisiak ):

 In [changeset:"6feaad9113fd38ba3970032d2b7856c77403e29e" 6feaad9]:
 {{{#!CommitTicketReference repository=""
 revision="6feaad9113fd38ba3970032d2b7856c77403e29e"
 Refs #30950, Refs #35187 -- Added tests for byte-compiled Django to daily
 builds.
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dcbba33a7-291db000-9869-4b42-986f-62d94a77a84b-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-19 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Marcus Hoffmann):

 @Jon: The test looks good to me! Thanks for adding it!
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dc0f6faee-ee97f02b-f7d5-4ba2-b7d6-81d89bf1e8b4-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-17 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Jon Janzen):

 I've put up a [https://github.com/django/django/pull/17870 PR] to add pyc-
 only builds to Django's daily tests.

 Marcus, if you wouldn't mind can you take a look and verify that the
 checks are sufficient to ensure buildroot/pyc-only builds won't break
 again?
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db834641e-0ca96bc5-4e9f-4123-a0ad-5cce07daee94-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-16 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Mariusz Felisiak ):

 In [changeset:"41a4bba817f139f3cfd94f04e728e046560c9a18" 41a4bba]:
 {{{#!CommitTicketReference repository=""
 revision="41a4bba817f139f3cfd94f04e728e046560c9a18"
 [5.0.x] Fixed #35187 -- Fixed
 @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-
 only builds.

 Thanks Jon Janzen for the implementation idea.

 Thanks Marcus Hoffmann for the report.

 Regression in 38e391e95fe5258bc6d2467332dc9cd44ce6ba52.
 Backport of d1be05b3e9209fd0787841c71a95819d81061187 from main
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db5ed160e-39a75d15-4d8c-47cd-b0d2-1c95329b6ee0-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-16 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  closed
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by GitHub ):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"d1be05b3e9209fd0787841c71a95819d81061187" d1be05b3]:
 {{{#!CommitTicketReference repository=""
 revision="d1be05b3e9209fd0787841c71a95819d81061187"
 Fixed #35187 -- Fixed @sensitive_variables/sensitive_post_parameters
 decorators crash with .pyc-only builds.

 Thanks Jon Janzen for the implementation idea.

 Thanks Marcus Hoffmann for the report.

 Regression in 38e391e95fe5258bc6d2467332dc9cd44ce6ba52.
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db5ec17cc-bacf878c-c896-4596-9e18-ce51c457b59f-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-16 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  assigned
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * has_patch:  0 => 1

Comment:

 [https://github.com/django/django/pull/17860 PR]
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db370eab3-f9c9156a-2c22-4b2f-aa5d-d89fb219e385-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-16 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+-
 Reporter:  Marcus Hoffmann  |Owner:  Mariusz
 |  Felisiak
 Type:  Bug  |   Status:  assigned
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * owner:  nobody => Mariusz Felisiak
 * status:  new => assigned

Comment:

 > I can confirm, this fixes the Problem for us. :-)

 Thanks for checking!
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db1eb4059-26424e43-efd1-4a76-b991-8689b2be1a7f-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-16 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+
 Reporter:  Marcus Hoffmann  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Comment (by Marcus Hoffmann):

 Replying to [comment:7 Mariusz Felisiak]:
 > Great idea! Marcus, does it work for you?

 I can confirm, this fixes the Problem for us. :-)
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db1ea7ac6-ef23075f-7da3-4fac-a851-3ca1d25090c2-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds.

2024-02-15 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+
 Reporter:  Marcus Hoffmann  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Comment (by Marcus Hoffmann):

 Replying to [comment:7 Mariusz Felisiak]:
 > Great idea! Marcus, does it work for you?
 > {{{#!diff
 > diff --git a/django/views/decorators/debug.py
 b/django/views/decorators/debug.py
 > index 7ea8a540de..6540fc0651 100644
 > --- a/django/views/decorators/debug.py
 > +++ b/django/views/decorators/debug.py
 > @@ -47,7 +47,6 @@ def sensitive_variables(*variables):
 >
 >  try:
 >  file_path = inspect.getfile(wrapped_func)
 > -_, first_file_line =
 inspect.getsourcelines(wrapped_func)
 >  except TypeError:  # Raises for builtins or native
 functions.
 >  raise ValueError(
 >  f"{func.__name__} cannot safely be wrapped by "
 > @@ -55,7 +54,8 @@ def sensitive_variables(*variables):
 >  "Python file (not a builtin or from a native
 extension)."
 >  )
 >  else:
 > -key = hash(f"{file_path}:{first_file_line}")
 > +first_line_number =
 wrapped_func.__code__.co_firstlineno
 > +key = hash(f"{file_path}:{first_line_number}")
 >
 >  if variables:
 >  coroutine_functions_to_sensitive_variables[key] =
 variables
 >
 > }}}

 Thanks for the patch, I'll try and test this tomorrow!
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dae5c5e0e-056123f6-0f8f-4bda-ae70-6357c4995c04-00%40eu-central-1.amazonses.com.


Re: [Django] #35187: @sensitive_variables/sensitive_post_parameters decorators crash with .pyc-only builds. (was: Django 5.0+ doesn't work with pyc files only)

2024-02-14 Thread Django
#35187: @sensitive_variables/sensitive_post_parameters decorators crash with 
.pyc-
only builds.
-+
 Reporter:  Marcus Hoffmann  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core (Other) |  Version:  5.0
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Mariusz Felisiak):

 * summary:  Django 5.0+ doesn't work with pyc files only =>
 @sensitive_variables/sensitive_post_parameters decorators crash with
 .pyc-only builds.
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dab30901d-22039c28-a6be-4ba5-bf3e-e815d7a95614-00%40eu-central-1.amazonses.com.