Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving project does not move project in sharing settings #13847

Open
Fank opened this issue Mar 12, 2025 · 3 comments
Open

Moving project does not move project in sharing settings #13847

Fank opened this issue Mar 12, 2025 · 3 comments
Labels
in linear Issue or PR has been created in Linear for internal review In Review We are reviewing the issue

Comments

@Fank
Copy link

Fank commented Mar 12, 2025

Bug Description

Not sure how to describe this issue correctly, thats why I attached a lot of images to explain the issue.

Basically I can't call a workflow in the same project, due to permission issues when I moved it from another project.

To Reproduce

  1. Create 2 projects
    Image

  2. Create following workflow in project 1
    Image
    Image

Workflow JSON
{
  "name": "Trigger workflow",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "da85ad5a-a463-46c1-963e-da92f553a228",
      "name": "When clicking ‘Test workflow’"
    },
    {
      "parameters": {
        "workflowId": {
          "__rl": true,
          "value": "dtyYU2lB0OeyDJVZ",
          "mode": "list",
          "cachedResultName": "Test project 2 — My workflow 4"
        },
        "workflowInputs": {
          "mappingMode": "defineBelow",
          "value": {},
          "matchingColumns": [],
          "schema": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": true
        },
        "options": {}
      },
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        220,
        0
      ],
      "id": "929ebc34-16b9-419f-adeb-e78f8fbc4a4a",
      "name": "Execute Workflow"
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Execute Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a1f175c1-98cd-465c-bdb1-c35a24a64ef3",
  "meta": {
    "instanceId": "94a4722c99e67331d954b7292a159d350b5424049db5ee23fe2d0df7fe09b001"
  },
  "id": "RZAzIjhXw7KekE4C",
  "tags": []
}
  1. Create following workflow in project 2
    Image
    Image
Workflow JSON
{
  "name": "Sub workflow",
  "nodes": [
    {
      "parameters": {
        "inputSource": "passthrough"
      },
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.1,
      "position": [
        -140,
        0
      ],
      "id": "0e480812-7a7b-4737-bff7-1f492a495530",
      "name": "When Executed by Another Workflow"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        60,
        0
      ],
      "id": "d244cd27-d611-42c5-bd4e-7cdeca661b0b",
      "name": "Edit Fields"
    }
  ],
  "pinData": {},
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5831d676-4081-4b1d-98ce-04746dc01d37",
  "meta": {
    "instanceId": "94a4722c99e67331d954b7292a159d350b5424049db5ee23fe2d0df7fe09b001"
  },
  "id": "dtyYU2lB0OeyDJVZ",
  "tags": []
}
  1. Ensure the correct workflow is called in project 1, it needs to call the sub workflow in project 2.

  2. Change the ".. can be called by" to following settings, to it can be called by another project:
    Image

  3. Test it once, it should run perfectly fine:
    Image
    Image

  4. Now move the trigger workflow from project 1 to project 2:
    Image

  5. Change the "... can be called by" to same project, because both workflows are now in the same project right?
    Image
    Image

  6. Then execute it again and notice its not in the same project:
    Image

Expected behavior

Workflow should be able to execute fine if in same project and allow workflows from the same project.

Debug info

core

  • n8nVersion: 1.82.1
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.18.3
  • database: postgres
  • executionMode: scaling
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: 03176d77-824f-4ef2-83db-39f7bc022c2f

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: s3

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/134.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-03-12T04:26:05.752Z

Operating System

docker (self-hosted)

n8n Version

1.82.1

Node.js Version

20.18.3

Database

PostgreSQL

Execution mode

queue

@Joffcom
Copy link
Member

Joffcom commented Mar 12, 2025

Hey @Fank,

We have created an internal ticket to look into this which we will be tracking as "GHC-1156"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Mar 12, 2025
@Joffcom
Copy link
Member

Joffcom commented Mar 12, 2025

Hey @Fank,

Solid steps to reproduce the issue thanks.

@Joffcom Joffcom added Needs Feedback Waiting for further input or clarification. In Review We are reviewing the issue and removed Needs Feedback Waiting for further input or clarification. labels Mar 12, 2025
@Fank
Copy link
Author

Fank commented Mar 12, 2025

This was one of the issues, which was easy to reproduce, the others are just pain 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review In Review We are reviewing the issue
Projects
None yet
Development

No branches or pull requests

2 participants