macressler / alfresco-bulk-filesystem-import

Automatically exported from code.google.com/p/alfresco-bulk-filesystem-import
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Redirect is not properly configured #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In "BulkFilesystemImportWebScript.java", at the end of web script, i see this 
code:

// If successful, redirect to the status Web Script
status.setCode(Status.STATUS_MOVED_TEMPORARILY);
status.setRedirect(true);
status.setLocation(request.getServiceContextPath() + 
WEB_SCRIPT_URI_BULK_FILESYSTEM_IMPORT_STATUS);

I have two considerations:
1) if a call from share: "/share/proxy/alfresco/bulkfsimport/initiate" with 
ajax request, i have a 302 redirect on "/alfresco/s/bulkfsimport/status", but i 
not logged on alfresco! In my opinion, redirect should be done on same 
"context" of original request (in this case, 
"/share/proxy/alfresco/bulkfsimport/status")

2) in some case, i don't need to redirect to status ws. For example, in my 
project, i want call "initiate" with ajax and after i want call "status.xml" 
with ajax. i don't need redirect. I propose a parameter to disable redirect.

Original issue reported on code.google.com by federico...@gmail.com on 25 Nov 2014 at 12:32

GoogleCodeExporter commented 9 years ago
The URL path element "bulkfsimport" doesn't exist in the bulk import tool.  Are 
you sure you're using this tool?

Original comment by pmo...@gmail.com on 25 Nov 2014 at 9:09

GoogleCodeExporter commented 9 years ago
in my description path is wrong.
Right path is "share/proxy/alfresco/bulk/import/filesystem/initiate", but the 
issue is correct.

Original comment by federico...@gmail.com on 26 Nov 2014 at 2:37