Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-1804

Details... button on PERMISSION_DEBIT dialog triggers run_time_permissions() with a deny action

    XMLWordPrintableJSON

Details

    • Defect
    • Status: Closed
    • Major
    • Resolution: Released
    • None
    • Active
    • None

    Description

      When an object requests DEBIT permissions a large, yellow dialog appears. This dialog has three buttons: "Grant", "Deny", and "Details..." When you select "Details..." Additional information about DEBIT permission is displayed.

      The bug is that when "Details..." is selected PERMISSION_DEBIT is denied and the run_time_permissions() event handler is triggered. There is also a system message in the Local Chat pane of the communicate window that informs the user that permission has been denied. Further, if "Grant" or "Deny" are pressed AFTER details the run_time_permissions() event handler is NOT triggered, yet there is a system message saying that permissions have been granted or denied.

      What should happen when "Details..." is pressed is no run_time_permissions event should be triggered and the "Grant" and "Deny" buttons should operate normally and trigger the run_time_permissions event afterwards.

      You can use the following script to test this behavior:

      default
      {
          state_entry()
          {
              llRequestPermissions(llGetOwner(),PERMISSION_DEBIT);
          }
       
          run_time_permissions(integer perm)
          {
              llSay(0, "Run Time Permissions Triggered");
              
              if(perm & PERMISSION_DEBIT)
              {
                  llSay(0, "PERMISSION_DEBIT granted");
              }
              
              else
              {
                  llSay(0, "PERMISSION_DEBIT denied");
              }    
          
          }
          
          touch_start(integer num_detected)
          {
              llResetScript();
          }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            zenmondo.wormser ZenMondo Wormser
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: