You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by HTTPError('500 Server Error: Internal Server Error for url: https://server.domain:443/api/storage/volumes/7da9eb81-6daa-4323-9eab-7bbce73da0f2/files/%2Falice%2Fbob'): Failed to rename "/alice/bob" to
"/alice/bob/charlie". Reason: Invalid argument
The library correctly identifies the change in path and forms the correct body for the patch but fails to append the file name to the URL. Resulting a REST call attempting to rename the parent directory of the file to the new filename and HTTP500 error.
ENVIRONMENT
netapp-ontap 9.13.1.0
Python 3.11.2
The text was updated successfully, but these errors were encountered:
Thank you for reporting an issue! If you haven't already joined our Discord community,
then we invite you to do so. This is a great place to get help and ask questions from our community.
It would be very helpful to know what the requests and responses from your example look like. Can you please enabled debug logging and share the output. You can do that by including this in your script:
Thanks @noorbuchi. I don't know what changed, apart from me taking a day leave but it seems to be working now... Will close the issue. I thought it may have been to do with leading / on source or destination but no. Perplexed but happy.
SCENARIO
Move a file from
/alice/bob/bb.txt
to/alice/bob/charlie/bb.txt
usingFileInfo
Docs and
file_info.py
line 972-985 suggest to rename a file as follows:EXPECTED BEHAVIOUR
File is renamed/ moved.
OBSERVED BEHAVIOUR
The library correctly identifies the change in
path
and forms the correct body for the patch but fails to append the file name to the URL. Resulting a REST call attempting to rename the parent directory of the file to the new filename and HTTP500 error.ENVIRONMENT
netapp-ontap 9.13.1.0
Python 3.11.2
The text was updated successfully, but these errors were encountered: