You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2008/02/12 10:25:08 UTC

[jira] Created: (SLING-244) ujax post servlet should allow relative moves

ujax post servlet should allow relative moves
---------------------------------------------

                 Key: SLING-244
                 URL: https://issues.apache.org/jira/browse/SLING-244
             Project: Sling
          Issue Type: Improvement
          Components: microsling
            Reporter: Tobias Bocanegra


use case:
1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
2. create a new node and move the tmp files to that location.

1. request:
  POST /tmp/upload/* 
  [...multipart with some file...]
1. response:
  [...response html with 'path' of new file/resource node...]

2. request
  POST /content/entry/*
  ujax:moveSrc = "...path of tmp file from 1. response..."
  ujax:moveDest = "./file"
  ./title = "Hello, world"
  ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra closed SLING-244.
----------------------------------


thanks.

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>            Assignee: Carsten Ziegeler
>         Attachments: ujax_rel_move.r627113.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568015#action_12568015 ] 

Tobias Bocanegra commented on SLING-244:
----------------------------------------

i will provide patch

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra reopened SLING-244:
------------------------------------


the main problem is that in case of content creation, the move is executed in advance.


> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra resolved SLING-244.
------------------------------------

    Resolution: Fixed

oops. actually already working :-)

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-244) ujax post servlet should allow relative moves

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-244:
-----------------------------------

              Assignee: Carsten Ziegeler
    Remaining Estimate: 0h
     Original Estimate: 0h

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>            Assignee: Carsten Ziegeler
>         Attachments: ujax_rel_move.r627113.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra updated SLING-244:
-----------------------------------

    Attachment: ujax_rel_move.r627113.patch

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>         Attachments: ujax_rel_move.r627113.patch
>
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-244) ujax post servlet should allow relative moves

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-244.
------------------------------------

    Resolution: Fixed

The date test was already applied yesterday with another patch from you.

Please cross check and close thigs bug.

Many thanks

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>            Assignee: Carsten Ziegeler
>         Attachments: ujax_rel_move.r627113.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra updated SLING-244:
-----------------------------------

    Attachment: ujax_rel_move.r627113.patch

fixes this issue.
also contains updated 'move' test (and a forgotten date values test)

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>         Attachments: ujax_rel_move.r627113.patch
>
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra closed SLING-244.
----------------------------------


> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-244) ujax post servlet should allow relative moves

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra updated SLING-244:
-----------------------------------

    Attachment:     (was: ujax_rel_move.r627113.patch)

> ujax post servlet should allow relative moves
> ---------------------------------------------
>
>                 Key: SLING-244
>                 URL: https://issues.apache.org/jira/browse/SLING-244
>             Project: Sling
>          Issue Type: Improvement
>          Components: microsling
>            Reporter: Tobias Bocanegra
>
> use case:
> 1. upload a file (or files) to a tmp location. eg to /tmp/upload/*
> 2. create a new node and move the tmp files to that location.
> 1. request:
>   POST /tmp/upload/* 
>   [...multipart with some file...]
> 1. response:
>   [...response html with 'path' of new file/resource node...]
> 2. request
>   POST /content/entry/*
>   ujax:moveSrc = "...path of tmp file from 1. response..."
>   ujax:moveDest = "./file"
>   ./title = "Hello, world"
>   ./fileName = "world.jpg"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.