Skip to content

GUI stuck with "id is not defined" error when trying to ignore non-existent folder #7077

Closed

Description

@tomasz1986

How to reproduce:

  1. Share a folder from Device A to Device B.
  2. Wait for the "New Folder" pop-up to show on Device B.
  3. Delete the folder on Device A.
  4. Clicking on the "Ignore" button on Device B results in a JS error.

image

id is not defined
    at Scope.$scope.ignoreFolder (syncthingController.js:1930)
    at $parseFunctionCall (angular.js:12493)
    at callback (angular.js:21719)
    at Scope.$eval (angular.js:14589)
    at Scope.$apply (angular.js:14688)
    at HTMLButtonElement.<anonymous> (angular.js:21724)
    at HTMLButtonElement.dispatch (jquery-2.2.2.js:4755)
    at HTMLButtonElement.elemData.handle (jquery-2.2.2.js:4567)

It seems that the only way to get rid of the pop-up is to remove the PendingFolder element from config.xml.

Tested with main (v1.11.0-rc.3.dev.7.gdeafe4ca).

Activity

  1. added
    bug
    ui
    needs-triage
    on Nov 1, 2020
  2. added a commit that references this issue on Nov 1, 2020
    295b747
  3. acolomb commented on Nov 1, 2020

    @acolomb
    Member

    Fix submitted as PR #7078.

  4. acolomb commented on Nov 1, 2020

    @acolomb
    Member

    Note that the problem is not related to "non-existent" folders. The ignoreFolder() function was simply using a wrong variable name after a recent code refactoring, so it couldn't work at all.

  5. tomasz1986 commented on Nov 1, 2020

    @tomasz1986
    MemberAuthor

    That is good to know. I did not even bother trying to ignore a folder without all the other steps 😳.

  6. added this to the v1.12.0 milestone on Nov 3, 2020
  7. added a commit that references this issue on Nov 9, 2020
    cdf06b8
  8. added
    frozen-due-to-age
    on Nov 2, 2021
  9. locked and limited conversation to collaborators on Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageneeds-triageui

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions