docs(MANUAL): gotchas de verificación de estado en SharePoint - #3
Merged
Conversation
Documenta dos trampas de la API REST de SharePoint que hacen reportar resultados FALSOS, halladas al verificar el cierre de la consolidación: - GET con `?$select=Name` devuelve 200 para carpetas YA borradas (falso positivo); la fuente primaria es el GET LIMPIO (404 = borrada). - Listar `/Folders` de una carpeta con >5000 hijos lanza SPQueryThrottledException; usar ItemCount + aritmética o muestreo de nombres reales con GET limpio. Añade 2 filas al cuadro de diagnóstico (§6) y una sección §7 con las reglas; renumera "Detener / desinstalar" a §8. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué
Documenta en
MANUAL.mddos trampas de la API REST de SharePoint que se descubrieron al verificar el cierre de la consolidación — y que hacían reportar resultados falsos con el método ingenuo.Por qué
Durante la verificación final de "0 carpetas
ID-restantes" un check con?$select=Namereportó 30/30 carpetas vivas, contradiciendo elItemCount=42.877. Al ir a la fuente primaria (GET limpio) resultó que las 30 estaban borradas:$selectdevuelve 200 para carpetas ya eliminadas. Sin esto documentado, el próximo que verifique estado de carpetas cae en la misma trampa.Cambios
$select=Name→ 200 en carpeta borrada (falso positivo) → usar GET limpio (404 = borrada).SPQueryThrottledException(500) al listar/Folderscon >5000 hijos → usarItemCount+ aritmética / muestreo.ItemCount, "¿cuántas quedan?"→aritmética/muestreo) + la regla general "si dos métodos se contradicen, uno miente: busca la fuente primaria".Solo documentación; sin cambios de código. El mismo gotcha quedó en la memoria del proyecto.
🤖 Generated with Claude Code