Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cloning item is not assigning the correct owner

Open
#2,500 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@nparavicini7 is already working on this.

Since May 18, 2026.

Assessment

This issue has not been assessed yet.

Description

bug

Describe the bug
When cloning an item and setting a new owner, the owner will not be respected if that item does not have a folder.

To Reproduce
Clone an item without a folder and setting an owner

Platform (please complete the following information):

  • OS: Windows
  • Python API Version: 2.4.3

Additional context
The bug appears because when there is no folder the given owner is not respected.

if self.folder:
    folder = self.target.content.folders.get(
        folder=self.folder, owner=self.owner
    )
else:
    folder = self.target.content.folders.get()

The fix
folder = self.target.content.folders.get(owner=self.owner)

Dominant language
Python
Stars
2.2k
Forks
1.2k
Avg merge
10h 15m
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Esri/arcgis-python-api

All issues in Esri/arcgis-python-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.