-
Notifications
You must be signed in to change notification settings - Fork 181
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
STATUS_OBJECT_NAME_INVALID: SetInfo failed for SMB2FileId #283
Comments
Is the target directory maybe a DFS link? |
It looks like a server share (\10.39.117.5\Securefiles$) but it might be a DFS. Asked the site to confirm. Would this not work with dfs? |
You cannot 'rename' between shares as far as I'm aware.
Op 19 jan. 2018 6:26 p.m. schreef "aleksejskolpakov" <
notifications@github.com>:
… It looks like a server share (\10.39.117.5\Securefiles$) but it might be a
DFS. Asked the site to confirm. Would this not work with dfs?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#283 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHLo0RrPZnqkbxskfXleH3NWmyva5iPks5tMNBAgaJpZM4RkiXP>
.
|
I'm renaming within the same share: |
The shares are on DFS. Any idea why would it return STATUS_OBJECT_NAME_INVALID for the subfolder? |
Could you share the exact code you're using to do this? Or create a packet capture of the interaction with the server? Without seeing the exact parameter values it's hard to comment on what might be wrong. |
Here is the code:
Where I'm upgrading from JCIFS so in theory the paths (folder names and so on) should be correct. This works fine when renaming within the same directory. |
Assuming I had a look at the code to see how things could go wrong. When you call |
Indeed, it should work, the only exception I could think of is if SUCCESS is a DFS share in itself. |
I am bit limited to what I can access and check on site where the failure occurs so I'm playing guessing games. I couldn't replicate the problem on my environment but I gonna have to try harder. I'll try the ReplaceIfExists suggestion, sounds reasonable, |
Hello @hierynomus, @pepijnve \directory\_mp4_123.mp4 to \directory\mp4_123.mp4 it gives below error message : |
@BansalPatel Can you post the code and a bit more logging than just the stacktrace? |
the bolder line smbFile.rename(newFilePath,true) throw the exception String existingFilePath = "directory\_mp4_123.mp4"; LOG : ERROR [2018-09-07T07:50:27,538] - com.os.util.helper.LoggerUtils.printInfoError:Line 91 - For video library id :: 50 Found Exception in downloading file : com.hierynomus.mssmb2.SMBApiException: STATUS_OBJECT_NAME_INVALID(3221225523/3221225523): SetInfo failed for SMB2FileId{persistentHandle=f8 41 e0 1e 12 00 00 00} |
Could you try removing the leading |
@pepijnve |
What are the exact file names that cause the problems? The error code A wireshark/tcpdump/... log also helps quite a lot in diagnosing this type of problem. There's no generic answer to why a server returns an error code; it's highly server implementation and parameter value dependent. |
@pepijnve , @hierynomus Is there any dependancy on tomcat or windows specific in SMBJ?? Thanks |
I got the same error working with a share from Windows Server 2016. This happened when the new name (which includes the path) contains |
I got the same error working with a share from Win10. It only do well when I rename to the root dirctory. |
STATUS_OBJECT_NAME _INVALID (Oxc0000033): Create |
I got this error using camel-smbj on windows 10. I solved the problem by replacing the relative path with the absolute path (from the shared folder)
relative path processed should be replaced by /directory/processed this poins to //server/shared/directory/processed |
This is my solution sharingRootName: app$ And full paths are:
|
FYI: we also faced this exception while renaming a file. Application servers running on Windows worked fine, but those on Linux failed while renaming a file. In the end, it was the same as @f-de mentioned. We used I do not have any further information on the fileshare used on customer side. SMBJ is used in v0.12.2. |
I'm trying to rename a file but getting the following: STATUS_OBJECT_NAME_INVALID(3221225523/3221225523): SetInfo failed for SMB2FileId{persistentHandle=53 e3 4d 02 1f 00 00 00}
If I rename leaving the path unchanged it works fine but when I change the path to move the file to a folder within the same location I'm getting the above. And to add to my confusion this works fine on my dev environment but fails on customer's network. Any idea what could cause such behavior.
Stack:
com.hierynomus.mssmb2.SMBApiException: STATUS_OBJECT_NAME_INVALID(3221225523/3221225523): SetInfo failed for SMB2FileId{persistentHandle=53 e3 4d 02 1f 00 00 00}
at com.hierynomus.smbj.share.Share.receive(Share.java:335)
at com.hierynomus.smbj.share.Share.sendReceive(Share.java:319)
at com.hierynomus.smbj.share.Share.setInfo(Share.java:171)
at com.hierynomus.smbj.share.DiskShare.setFileInformation(DiskShare.java:230)
at com.hierynomus.smbj.share.DiskEntry.setFileInformation(DiskEntry.java:64)
at com.hierynomus.smbj.share.DiskEntry.rename(DiskEntry.java:106)
at com.hierynomus.smbj.share.DiskEntry.rename(DiskEntry.java:101)
at com.hierynomus.smbj.share.DiskEntry.rename(DiskEntry.java:97)
...
Thank You!
The text was updated successfully, but these errors were encountered: