Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Asset folder not supported for CMS 16 #6

Description

@FiXerCz

Hello,
processing project folders on CMS 16.0 throws exception, when folders contain folder type "Asset" (introduced in the version 16). Looks like "Asset" folder type is not yet supported by SmartApi.

Are you planning to add this functionality?

Here is the exception:

erminas.SmartAPI.Exceptions.SmartAPIException: Could not convert value '2' of attribute 'catalog' to a boolean value
at erminas.SmartAPI.Utils.XmlUtil.GetBoolAttributeValue(XmlElement xmlElement, String attributeName)
at erminas.SmartAPI.CMS.Project.Folder.InternalFolderFactory.CreateFolder(IProject project, XmlElement element)
at erminas.SmartAPI.CMS.Project.Folders.b__13_1(XmlElement curNode)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at erminas.SmartAPI.CMS.Project.Folders.GetFolders()
at erminas.SmartAPI.Utils.CachedCollections.CachedList1.EnsureListIsLoaded() at erminas.SmartAPI.Utils.CachedCollections.CachedList1.GetEnumerator()
.....

The exception can be replicated by simly iterating over the projects folders for a project, that contains folder of type "Asset".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions