[
https://jira.jboss.org/jira/browse/GTNPORTAL-426?page=com.atlassian.jira....
]
Julien Viet commented on GTNPORTAL-426:
---------------------------------------
Which content type should be assigned for :
- files without extensions
- for json I think we can update web.xml to contain the correct mime type : which one is
it ?
Exception during import gadget resources
-----------------------------------------
Key: GTNPORTAL-426
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-426
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta04
Reporter: Vitaly Parfonov
Assignee: Julien Viet
org.chromattic.api.UndeclaredRepositoryException:
javax.jcr.nodetype.ConstraintViolationException: Mandatory item
org.exoplatform.services.jcr.datamodel.InternalQName@1fecbd7d
([
http://www.jcp.org/jcr/1.0]mimeType) not found.
This happen if some file don't have extensions of have don't knowing exception
like ('.json').
Problem is in class org.exoplatform.application.gadget.LocalImporter
line(196): String mimeType = getMimeType(name);
in this case mimeType is null.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira