bugGNU nano - Bugs: bug #48286, awkward behaviour when trying to...

 
 

bug #48286: awkward behaviour when trying to open inaccessible directory using goto prompt

Submitted by:  Rishabh Dave <prongs>
Submitted on:  Tue 21 Jun 2016 01:09:34 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 29 Jun 2016 01:35:46 PM UTC, comment #3:

Released.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 26 Jun 2016 02:55:36 PM UTC, comment #2:

Fixed in git, 559858a.

Thanks for working on this.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 21 Jun 2016 02:21:50 PM UTC, comment #1:

When typing <Enter> after step 5, it says "Cannot open directory: Permission denied", but... it does go there. That is what goes wrong. Anything that happens after that is a result of going somewhere when it said it couldn't go there.

What is it the expected behavior? I would say: when typing <Enter> at step 5, it should give that message, stay where it is, and put the "cursor" (the selection bar) on the relevant element -- in this case: on "noa". Do you agree?

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 21 Jun 2016 01:09:34 PM UTC, original submission:

Following reproduction recipe is written in steps with respect to current working directory as git repository -

1. mkdir noa && touch noa/a && chmod a-x noa
2. (run make command if necessary and then) src/nano
3. ^R ^T (open the browser)
4. M-G (open goto dir prompt)
5. type - "noa"
6. Now screen displays parent directory ".." and file "a" that we created.
7. Hitting enter on ".." would lead to parent directory of git repo instead of noa's parent directory. This behaviour is awkward.

Also, selecting file "a" leads to error - "....nano/a: No such file or directory".

Initially, before bug #48007: segmentation fault when trying to browse to an inaccessible directory, it used to segfault too but with fix for that bug it does this in segfault's stead.

Rishabh Dave <prongs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by prongs (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Jun 2016 01:35:46 PM UTCbensOpen/ClosedOpen=>Closed
    Sun 26 Jun 2016 02:55:36 PM UTCbensStatusIn Progress=>Fixed
    Sat 25 Jun 2016 08:02:28 AM UTCbensStatusNone=>In Progress
      Assigned toNone=>bens
    Tue 21 Jun 2016 02:21:50 PM UTCbensSummaryawkward behaviour when trying to open inaccessible directory using goto prompt in browser=>awkward behaviour when trying to open inaccessible directory using goto prompt

    Back to the top


    Powered by Savane 3.1-cleanup1