Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2667

No permissions for REST API in project created through TVB Web interface

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.5
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      VBC 5
    • TVB-C Task:
      6.2 Design multiscale Viewers

      Description

      Toni reported a problem:

      • he created a new project using the GUI at FRH and uploaded some datatypes inside it
      • then, he logged in by REST client and tried to access the data in that project, using: get_datatypes_in_project
      • he received this exception:
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
          File "//anaconda/envs/frompypi/lib/python3.8/site-packages/tvb/interfaces/rest/client/tvb_client.py", line 156, in get_data_in_project
            return self.project_api.get_data_in_project(project_gid)
          File "//anaconda/envs/frompypi/lib/python3.8/site-packages/tvb/interfaces/rest/client/client_decorators.py", line 63, in decorator
            raise ClientException(error_message, response.status_code)
        tvb.interfaces.rest.commons.exceptions.ClientException: You cannot access this resource
        

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              lia.domide Lia Domide
              Reporter:
              paula.popa Paula Popa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours Time Not Required
                  3h