Project

General

Profile

Bug #2097

qview segfaults when trying to edit cube without write privileges

Added by Kristin Berry almost 4 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Applications
Target version:
Impact:

Minimal - Cube re-opens under "r" privileges if it fails to open open "rw"

Software Version:
Test Reviewer:

Description

Steps to reproduce:

Open a cube in qview you don't have write privilege on. (ex: /work/users/kberry/demprep/vesta64_dtm.cub )
Try to edit it, say, by adding a horizontal line of nulls.

An error pop up which says "Cannot open cube read/write."
After clicking on this box, qview segfaults.

History

#2 Updated by Tammy Becker almost 4 years ago

  • Status changed from New to Acknowledged

#3 Updated by Stuart Sides 9 months ago

  • Status changed from Acknowledged to Assigned
  • Assignee set to Adam Goins

#4 Updated by Adam Goins 9 months ago

  • Status changed from Assigned to In Progress

#5 Updated by Adam Goins 9 months ago

  • Impact updated (diff)

#6 Updated by Adam Goins 9 months ago

  • Status changed from In Progress to Resolved

#7 Updated by Adam Goins 8 months ago

  • Target version set to 3.5.2 (2017-01-31 Jan)

#8 Updated by Kristin Berry 8 months ago

  • Status changed from Resolved to Feedback

qview now no longer segfaults the first time a no-write-permissions cube edit is attempted, but if you click 'Ok' on the warning that pops up, and continue to try to edit the cube over and over (try 10 times: adding null lines, adding boxes of LRS, etc) I still get a bunch of "Programmer errors" and then a segfault. Could you see if you can reproduce this behavior? Let me know if you have any questions.

#9 Updated by Adam Goins 8 months ago

  • Status changed from Feedback to Resolved

I was able to replicate and fix the segfaults when creating rectangles of LRS, additional modifications, etc.

#10 Updated by Tammy Becker 8 months ago

Tested this with a cube that I didn't have write permission with. I attempted to apply the edit tool and it popped up the error message; I tried it multiple times and the popup continued just fine.

I also tested with a cube I do have permission to write and the edit tool worked as expected.

Thank you!

#12 Updated by Kristin Berry 8 months ago

  • Status changed from Resolved to Closed

#13 Updated by Summer Stapleton 8 months ago

Maybe just remove the iostream includes? Other than that, looks good!

Also available in: Atom PDF