Drivers Run Without Asking Permission 2.8 #61603

Closed
opened 2019-02-16 11:53:55 +01:00 by Predrag Lazic · 10 comments

System Information
OS: Manjaro 17.1.12 Hakoila
Kernel: x86_64 Linux 4.16.18-rt12-MANJARO
DE: KDE 5.50.0 / Plasma 5.13.5
CPU: Intel Core i5-2400S @ 4x 3.3GHz [55.0°C]
GPU: AMD TURKS (DRM 2.50.0 / 4.16.18-rt12-MANJARO, LLVM 6.0.1)
RAM: 2228MiB / 3925MiB

Blender Version
Broken: 66c23ea2b4
Worked: f4dc9f9d68

Short description of error

Auto Run Python Scripts is not disabled by default in 2.8beta
The checkbox is disabled yet it still registers.

Exact steps for others to reproduce the error
Open Attached File. (Plane x transform value is driven by Camera x transform)
In 2.79 it should ask for Reload with Python Scripts enabled
In 2.8 it works upon opening.
driverBug.blend

**System Information** OS: Manjaro 17.1.12 Hakoila Kernel: x86_64 Linux 4.16.18-rt12-MANJARO DE: KDE 5.50.0 / Plasma 5.13.5 CPU: Intel Core i5-2400S @ 4x 3.3GHz [55.0°C] GPU: AMD TURKS (DRM 2.50.0 / 4.16.18-rt12-MANJARO, LLVM 6.0.1) RAM: 2228MiB / 3925MiB **Blender Version** Broken: 66c23ea2b4a4 Worked: f4dc9f9d68b **Short description of error** Auto Run Python Scripts is not disabled by default in 2.8beta The checkbox is disabled yet it still registers. **Exact steps for others to reproduce the error** Open Attached File. (Plane x transform value is driven by Camera x transform) In 2.79 it should ask for Reload with Python Scripts enabled In 2.8 it works upon opening. [driverBug.blend](https://archive.blender.org/developer/F6628299/driverBug.blend)
Author

Added subscriber: @particl3s

Added subscriber: @particl3s

Added subscriber: @moisessalvador

Added subscriber: @moisessalvador

I know there are now some simple expressions that run without python and are considered safe so they don't require permission. Maybe try writting a more complex expression to eventually trigger the warning

I know there are now some simple expressions that run without python and are considered safe so they don't require permission. Maybe try writting a more complex expression to eventually trigger the warning

Added subscriber: @ZedDB

Added subscriber: @ZedDB

You are not using the nightly 2.79 build, right? It doesn't seem to ask me for permission with the latest 2.79 either: https://builder.blender.org/download/

You are not using the nightly 2.79 build, right? It doesn't seem to ask me for permission with the latest 2.79 either: https://builder.blender.org/download/
Author

No, not using the current 2.79 build. It's just dangerous to have expressions running on auto-pilot.

I've tried it with more complex expressions on the drivers but still runs it whether box is unchecked or not. (2.8)

Expressions are as follows:
1*(1-cos(max(rotX,0)))

  • 1*sin(max(rotX,0))
No, not using the current 2.79 build. It's just dangerous to have expressions running on auto-pilot. I've tried it with more complex expressions on the drivers but still runs it whether box is unchecked or not. (2.8) Expressions are as follows: 1*(1-cos(max(rotX,0))) - 1*sin(max(rotX,0))

Added subscriber: @brecht

Added subscriber: @brecht

I don't think allowing use of certain math expressions is dangerous.

@brecht I'm guessing this is the intended behavior?

I don't think allowing use of certain math expressions is dangerous. @brecht I'm guessing this is the intended behavior?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-02-25 12:14:26 +01:00

In 2.80 we indeed evaluate most math expressions without Python, which is both faster and does not come with the security risk.

The above examples of expressions do not need Python.

In 2.80 we indeed evaluate most math expressions without Python, which is both faster and does not come with the security risk. The above examples of expressions do not need Python.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#61603
No description provided.