You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/02/07 12:01:14 UTC
[jira] Created: (SLING-235) UjaxFileUploadHandler needs tests for
the nt:file vs. nt:resource decisions
UjaxFileUploadHandler needs tests for the nt:file vs. nt:resource decisions
---------------------------------------------------------------------------
Key: SLING-235
URL: https://issues.apache.org/jira/browse/SLING-235
Project: Sling
Issue Type: Test
Components: Core
Reporter: Bertrand Delacretaz
Priority: Minor
I'm modifying UjaxFileUploadHandler so that it creates an nt:file node (as opposed to nt:resource) if the name of the file being uploaded includes an extension.
The rationale for the choice between nt:file and nt:resource is that if the filename is "important" the upload handler creates an nt:file, and if not it's an nt:resource.
We need to add some tests to verify this logic, including what the class did before my changes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-235) UjaxFileUploadHandler needs tests for
the nt:file vs. nt:resource decisions
Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566556#action_12566556 ]
Bertrand Delacretaz commented on SLING-235:
-------------------------------------------
Note that the decision could also be based on nt:hierarchyNode instead of nt:folder.
> UjaxFileUploadHandler needs tests for the nt:file vs. nt:resource decisions
> ---------------------------------------------------------------------------
>
> Key: SLING-235
> URL: https://issues.apache.org/jira/browse/SLING-235
> Project: Sling
> Issue Type: Test
> Components: Core
> Reporter: Bertrand Delacretaz
> Priority: Minor
>
> I'm modifying UjaxFileUploadHandler so that it creates an nt:file node (as opposed to nt:resource) if the name of the file being uploaded includes an extension.
> The rationale for the choice between nt:file and nt:resource is that if the filename is "important" the upload handler creates an nt:file, and if not it's an nt:resource.
> We need to add some tests to verify this logic, including what the class did before my changes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.