adobe / adobe/stock-api-libphp

_initial_invalid_state not reset to true on searchFilesInitialize

Aperta Adatta ai principianti
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
20
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# Issue report

## Brief description of issue

Code in `searchFilesInitialize` expects `_initial_invalid_state` to be true before making an API call. This flag is set to true in the constructor. After a first call to `searchFilesInitialize` everything works correctly, you can call afterwards `getNextResponse`, `getPreviousResponse`, etc.

However if you try to start a new search with the SearchFiles object calling again `searchFilesInitialize`, you will not be able to use `getNextResponse`, `getPreviousResponse`, etc. because `searchFilesInitialize` doesn't reset `_initial_invalid_state` to true.

## Proposed fix (if applicable)

Add `_initial_invalid_state = true;` add the end of `searchFilesInitialize`.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start at the SearchFiles object's searchFilesInitialize entry point and inspect how _initial_invalid_state is set in the constructor and consumed by getNextResponse and getPreviousResponse. Done means repeated initialization leaves the object ready for those navigation methods while preserving the existing behavior after the first initialization.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php
Ambito
api
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.