426 protocol_status(rq->sn, rq->rq, PROTOCOL_NOT_FOUND, NULL); |
426 protocol_status(rq->sn, rq->rq, PROTOCOL_NOT_FOUND, NULL); |
427 } |
427 } |
428 return 1; |
428 return 1; |
429 } |
429 } |
430 |
430 |
|
431 // store resource_id in rq->vars, maybe some other modules |
|
432 // like to use it |
|
433 char resource_id_str[32]; |
|
434 snprintf(resource_id_str, 32, "%" PRId64, resource_id); |
|
435 pblock_nvinsert("resource_id",resource_id_str, rq->rq->vars); |
|
436 |
431 // create a list of requsted extended properties |
437 // create a list of requsted extended properties |
432 PgPropfindExtCol *ext; |
438 PgPropfindExtCol *ext; |
433 size_t numext; |
439 size_t numext; |
434 if(pgdav->repository->ntables == 0) { |
440 if(pgdav->repository->ntables == 0) { |
435 // no property extensions configured |
441 // no property extensions configured |
484 return 1; |
490 return 1; |
485 } |
491 } |
486 query = sql->space; |
492 query = sql->space; |
487 |
493 |
488 // get all resources and properties |
494 // get all resources and properties |
489 char resource_id_str[32]; |
|
490 snprintf(resource_id_str, 32, "%" PRId64, resource_id); |
|
491 |
|
492 size_t href_len = strlen(href); |
495 size_t href_len = strlen(href); |
493 char *href_param = pool_malloc(rq->sn->pool, href_len + 1); |
496 char *href_param = pool_malloc(rq->sn->pool, href_len + 1); |
494 memcpy(href_param, href, href_len); |
497 memcpy(href_param, href, href_len); |
495 if(href_param[href_len-1] == '/') { |
498 if(href_param[href_len-1] == '/') { |
496 href_len--; |
499 href_len--; |