Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #1986330: When Batch ID doesn't exist, Drupal should emit a 404
Problem/Motivation
Currently if you try to go to /batch?id=123 you get redirected to the homepage with a message stating "No active batch".
Beta phase evaluation
Issue category | Usability Bug, because the message "No active batch" is not clear, since no batch is ran and it does not exists. Response must help figure out what is going on actually. |
---|---|
Issue priority | Normal, because this is a self-contained bug and does not impact the overall functionality of the software. |
Unfrozen changes | Not unfrozen because it changes automated tests and needs a bug fix. |
Prioritized changes | Prioritized, the main goal of this issue is a bug fix, usability and user experience improvement. |
Disruption | Impact on improving usability is fair. Also it doesn't disrupt core API because it is internal to batch API only. |
Proposed resolution
Since the batch doesn't exist Drupal should just emit a 404 instead
User interface changes
N/A
API changes
If you try to go to /batch?id=123 Drupal emit a 404.
Comment | File | Size | Author |
---|---|---|---|
#19 | d7_when_batch_id-2826866-19.patch | 520 bytes | cebasqueira |
#14 | Screen Shot 2017-01-12 at 12.23.55 PM.png | 112.91 KB | nikunjkotecha |
#10 | 2826866-10.patch | 519 bytes | nikunjkotecha |
Comments
Comment #2
nikunjkotechaAdding patch for D7.
Comment #3
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedWe should add a message log to the dblog system.
Comment #4
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedComment #6
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedAdding a patch for Text change.Please review.
Comment #7
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedComment #9
nikunjkotechaComment #10
nikunjkotechaUpdated patch to include the message before drupal_exit().
Comment #11
nikunjkotechaComment #13
nikunjkotechaI'm not sure what's the error for fail as it shows nothing in error and it passed in simplytest.me for me.
Comment #14
nikunjkotechascreenshot attached from simplytest.me
Comment #16
AjitSCan we get a better message? This sounds very technical.
How about
Comment #17
navneet0693 CreditAttribution: navneet0693 as a volunteer and at QED42 commentedAgreed with comment in #16
Comment #18
navneet0693 CreditAttribution: navneet0693 as a volunteer and at QED42 commentedIt's just a suggest if we use
%
instead of@
Comment #19
cebasqueira CreditAttribution: cebasqueira at CI&T commentedComment #20
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedVerified and working as expected.
Comment #21
cebasqueira CreditAttribution: cebasqueira at CI&T commentedDinesh18 please change the status to RTBC
Comment #22
navneet0693 CreditAttribution: navneet0693 as a volunteer and at QED42 commentedComment #23
stefan.r CreditAttribution: stefan.r commentedHow does this work in Drupal 8? If it has the same issue, this should be fixed there first.
Comment #24
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedThe Drupal 8 issue is the parent of this one (#1986330: When Batch ID doesn't exist, Drupal should emit a 404). Looks like it was just marked RTBC, but the two patches are not in sync. They use different wording, and (especially) this one is missing the automated test.