Skip to content

Freelancer Role on a project stops sync loop with 403 #77

@nebukadhezer

Description

@nebukadhezer

Is there an existing issue for this?

  • I have searched the existing issues and added correct labels.

Description

Current Behavior

If a user has a sole freelancer role on any project, the sync loop stops with a 403.

Expected Behavior

The sync loop should skip the project as it is a 403 and then continue with the other projects accordingly.
Plus write a warning message that the permissions are not sufficient for project x.

if response.status_code not in [200, 204]:

Here a 403 should not raise but warn and continue.

Steps To Reproduce:

  1. Create a test user
  2. add some projects
  3. set the role to Freelancer on one project
  4. start the tray check the output

Additional context:

Version

1.2.5

What platform were you running when you found the bug?

Windows

Relevant log output:

*** WRN: >>> { SiteSyncThread }: [  Unhandled except. in sync loop, stopping server  ]
==============================
Cannot get representations for sync with code 403
==============================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions