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
Description

The message Removing ites\all\modules/eldorado_superfly/LICENSE.txt. is missing the first character from the path ("s").

#1

NancyDru - October 14, 2009 - 14:40

BTW, this is Windoze XP

#2

drumm - October 15, 2009 - 06:18

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

drumm - October 15, 2009 - 06:18
Status:active» postponed (maintainer needs more info)

#4

NancyDru - October 15, 2009 - 12:56
Status:postponed (maintainer needs more info)» active

No, the "s" is missing there on all the entries.

#5

drumm - October 15, 2009 - 16:33
Status:active» postponed (maintainer needs more info)

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

NancyDru - October 15, 2009 - 16:36

If you tell me how to force a re-index, I will be happy to do so.

#7

drumm - October 15, 2009 - 16:42

Saving a branch in the admin section will force reindexing. If you use Drush, there is an 'api reparse' drush command.

#8

NancyDru - October 15, 2009 - 19:17

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

NancyDru - October 15, 2009 - 19:26

Interesting, I uninstalled the module and while the nodes went away, the node_revisions remained.

#10

NancyDru - October 15, 2009 - 19:40

After re-installing the API module and adding the branch again, the job queue is still empty.

#11

NancyDru - October 15, 2009 - 20:10

Apparently job_queue doesn't report work until the next cron run.

#12

NancyDru - October 15, 2009 - 20:12
Status:postponed (maintainer needs more info)» active

API parse drupal-6 ites\all\modules/location/INSTALL.txt

So the "s" is missing at this point.

#13

NancyDru - October 15, 2009 - 20:23

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":

API parse drupal-6 sites\all\modules/signup/views/plugins/signup_plugin_access_user_signup_list.inc

#14

drumm - November 7, 2009 - 20:12
Status:active» fixed

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

System Message - November 21, 2009 - 20:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.