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

Empty file import throws notsupported exception #436

Closed
VargaJoe opened this issue Aug 3, 2018 · 0 comments
Closed

Empty file import throws notsupported exception #436

VargaJoe opened this issue Aug 3, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@VargaJoe
Copy link
Contributor

VargaJoe commented Aug 3, 2018

Environment:

  • sensenet Services 7.3.1 + WebPages
  • default sql db
  • no external blob provider
  • no blob configuration
  • FS is not installed

Files are imported correctly using SnAdmin, except if they have 0 byte length.

07:28:01.4953	NotSupportedException: Specified method is not supported.
07:28:01.5032	   at SenseNet.ContentRepository.Storage.Data.SqlClient.BuiltInBlobProvider.GetStreamForWrite(BlobStorageContext context)
   at SenseNet.ContentRepository.Storage.Data.SqlClient.MsSqlBlobMetaDataProvider.UpdateBinaryProperty(IBlobProvider blobProvider, BinaryDataValue value)
   at SenseNet.ContentRepository.Storage.Data.SqlClient.SqlNodeWriter.UpdateBinaryProperty(BinaryDataValue value) in E:\BuildAgent\_work\63\s\src\Storage\Data\SqlClient\SqlNodeWriter.cs:line 383
   at SenseNet.ContentRepository.Storage.Data.DataProvider.SaveNodeProperties(NodeData nodeData, SavingAlgorithm savingAlgorithm, INodeWriter writer, Boolean isNewNode) in E:\BuildAgent\_work\63\s\src\Storage\Data\DataProvider.cs:line 224
   at SenseNet.ContentRepository.Storage.Data.DataProvider.SaveNodeData(NodeData nodeData, NodeSaveSettings settings, Int32& lastMajorVersionId, Int32& lastMinorVersionId) in E:\BuildAgent\_work\63\s\src\Storage\Data\DataProvider.cs:line 139
   at SenseNet.ContentRepository.Storage.DataBackingStore.SaveNodeDataTransactional(Node node, NodeSaveSettings settings, IIndexPopulator populator, String originalPath, String newPath) in E:\BuildAgent\_work\63\s\src\Storage\DataBackingStore.cs:line 614
   at SenseNet.ContentRepository.Storage.DataBackingStore.SaveNodeData(Node node, NodeSaveSettings settings, IIndexPopulator populator, String originalPath, String newPath) in E:\BuildAgent\_work\63\s\src\Storage\DataBackingStore.cs:line 453
   at SenseNet.ContentRepository.Storage.Node.Save(NodeSaveSettings settings) in E:\BuildAgent\_work\63\s\src\Storage\Node.cs:line 2643
   at SenseNet.ContentRepository.GenericContent.Save(NodeSaveSettings settings) in E:\BuildAgent\_work\63\s\src\ContentRepository\GenericContent.cs:line 1696
   at SenseNet.ContentRepository.SavingAction.Execute() in E:\BuildAgent\_work\63\s\src\ContentRepository\SavingAction.cs:line 421
   at SenseNet.ContentRepository.GenericContent.Save(SavingMode mode) in E:\BuildAgent\_work\63\s\src\ContentRepository\GenericContent.cs:line 1684
   at SenseNet.ContentRepository.Content.Save(Boolean validOnly, SavingMode mode) in E:\BuildAgent\_work\63\s\src\ContentRepository\Content.cs:line 1018
   at SenseNet.ContentRepository.Content.Save(Boolean validOnly) in E:\BuildAgent\_work\63\s\src\ContentRepository\Content.cs:line 979
   at SenseNet.ContentRepository.Content.ImportFieldData(ImportContext context, Boolean saveContent) in E:\BuildAgent\_work\63\s\src\ContentRepository\Content.cs:line 1660
   at SenseNet.Packaging.Steps.ImportBase.ContentInfo.SetMetadata(Content content, String currentDirectory, Boolean isNewContent, Boolean updateReferences) in E:\BuildAgent\_work\63\s\src\ContentRepository\Packaging\Steps\ImportBase.cs:line 241
   at SenseNet.Packaging.Steps.ImportBase.ImporterClass.TreeWalker(String path, Boolean pathIsFile, Node folder, String indent, Boolean aspects, Boolean settings) in E:\BuildAgent\_work\63\s\src\ContentRepository\Packaging\Steps\ImportBase.cs:line 877

Exception is thrown here:

throw new NotSupportedException();

Caller:

using (var stream = blobProvider.GetStreamForWrite(ctx))

@tusmester tusmester added the bug label Aug 3, 2018
@tusmester tusmester added this to the Sprint 164 milestone Aug 3, 2018
@kultsar kultsar modified the milestones: Sprint 164, Sprint 165 Aug 8, 2018
@herflis herflis closed this as completed Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants