Removing ites\all\modules/eldorado_superfly/LICENSE.txt.
NancyDru - October 14, 2009 - 14:40
| Project: | API |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The message Removing ites\all\modules/eldorado_superfly/LICENSE.txt.
is missing the first character from the path ("s").

#1
BTW, this is Windoze XP
#2
This looks like a Windows-only issue. I guess we can start digging by seeing if the filename is right in the database. Does
SELECT object_name FROM api_documentation WHERE object_type = 'file';have good file paths?
#3
#4
No, the "s" is missing there on all the entries.
#5
During parsing, files are queued and then processed. .../admin/reports/job_queue has a list of queued jobs, including filenames. See if you can catch those, might have to reload the admin page while cron is running. Are those names correct.
The original list comes from api_scan_directories() called from api_update_branch(), all in parser.inc. If the problem happens before the files get to the queue, the issue should be in one of these functions.
#6
If you tell me how to force a re-index, I will be happy to do so.
#7
Saving a branch in the admin section will force reindexing. If you use Drush, there is an 'api reparse' drush command.
#8
I edited the Drupal-6 branch and added a Drupal-7 branch and the job queue is empty. I am not adverse to doing something in the database.
#9
Interesting, I uninstalled the module and while the nodes went away, the node_revisions remained.
#10
After re-installing the API module and adding the branch again, the job queue is still empty.
#11
Apparently job_queue doesn't report work until the next cron run.
#12
So the "s" is missing at this point.
#13
Line 805, parser.inc:
if (!$excluded) {$file_name = substr($path, strlen($common_ancestor) + 1);
$source_files[$path] = $file_name;
}
So it deliberately advances one extra character.
Removing "+1":
#14
I changed a '/' to the cross-platform DIRECTORY_SEPARATOR constant in api_scan_directories(), which should help this out. I don't have a windows server to test on.
#15
Automatically closed -- issue fixed for 2 weeks with no activity.